refactor: add more types

include types for the new info.yaml
This commit is contained in:
Uri Shaked
2023-12-23 21:27:22 +02:00
parent 0ea5cec65d
commit c2c0d8ffbd
8 changed files with 253 additions and 197 deletions
+22
View File
@@ -0,0 +1,22 @@
from typing import Dict, TypedDict
class ShuttleIndexMuxEntry(TypedDict):
macro: str
x: int
y: int
tiles: str
repo: str
commit: str
features: dict[str, bool]
class ShuttleIndex(TypedDict):
"""TypedDict for Tiny Tapeout's shuttle_index.json file."""
shuttle: str
repo: str
commit: str
commit_date: int
version: int
mux: Dict[str, ShuttleIndexMuxEntry]