aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author苏向夜 <fu050409@163.com>2024-01-22 17:23:22 +0800
committer苏向夜 <fu050409@163.com>2024-01-22 17:23:22 +0800
commitca01ccf7b915e0841203a453d1ecdc1647940a89 (patch)
treeecac95e08f5d317727d518347b89db849edac06b
parent930b796e3af1ce1aef11a28f5f4f953736c285b0 (diff)
downloadipm-ca01ccf7b915e0841203a453d1ecdc1647940a89.tar.gz
ipm-ca01ccf7b915e0841203a453d1ecdc1647940a89.zip
:sparkles: feat(lock): add typing
-rw-r--r--src/ipm/typing.py5
1 files changed, 5 insertions, 0 deletions
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"]]