mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 17:24:32 +02:00
Type enforcement for ResGPU
Only tuples support typing a specific number of entries.
This commit is contained in:
+1
-1
@@ -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__':
|
||||
|
||||
Reference in New Issue
Block a user