Type enforcement for ResGPU

Only tuples support typing a specific number of entries.
This commit is contained in:
awsr
2026-03-27 14:15:44 -07:00
parent fe7e4b40ff
commit 1e9bef8d56
5 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -42,7 +42,7 @@ Resut should always be: list[ResGPU]
class ResGPU(BaseModel):
name: str = Field(title="GPU Name")
data: dict = Field(title="Name/Value data")
chart: list[float, float] = Field(title="Exactly two items to place on chart")
chart: tuple[float, float] = Field(title="Exactly two items to place on chart")
"""
if __name__ == '__main__':