From ca01ccf7b915e0841203a453d1ecdc1647940a89 Mon Sep 17 00:00:00 2001 From: 苏向夜 Date: Mon, 22 Jan 2024 17:23:22 +0800 Subject: :sparkles: feat(lock): add typing --- src/ipm/typing.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/ipm/typing.py b/src/ipm/typing.py index dbf124a..f800273 100644 --- a/src/ipm/typing.py +++ b/src/ipm/typing.py @@ -8,3 +8,8 @@ from typing import ( ) StrPath = str | Path +Index = Dict[Literal["index", "host", "uuid"]] +Package = Dict[ + Literal["name", "version", "description", "requirements", "dependencies"] +] +Storage = Dict[Literal["name", "version", "hash", "source"]] -- cgit v1.2.3-70-g09d2