mirror of
https://github.com/TinyTapeout/tt-support-tools.git
synced 2026-11-03 12:46:08 +01:00
1. Bump "version" to 3 2. Rename "shuttle" to "name" 2. Rename "mux" to "projects", and turn it from a dict into a list 3. Project entries: add "address" (which was previously the key of the "mux" dict), remove "features" and add optional "analog_pins" with a list of analog pin assignment.
24 lines
447 B
Python
24 lines
447 B
Python
from typing import List, NotRequired, TypedDict
|
|
|
|
|
|
class ShuttleIndexProject(TypedDict):
|
|
macro: str
|
|
address: int
|
|
x: int
|
|
y: int
|
|
tiles: str
|
|
repo: str
|
|
commit: str
|
|
analog_pins: NotRequired[List[int]]
|
|
|
|
|
|
class ShuttleIndex(TypedDict):
|
|
"""TypedDict for Tiny Tapeout's shuttle_index.json file."""
|
|
|
|
name: str
|
|
repo: str
|
|
commit: str
|
|
commit_date: int
|
|
version: int
|
|
projects: List[ShuttleIndexProject]
|