Merge pull request #2418 from hlohaus/arm3

Fix typing issue
This commit is contained in:
H Lohaus 2024-11-25 00:42:18 +01:00 committed by GitHub
commit 73997bc4e7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -133,13 +133,13 @@ class Image(BaseModel):
)) ))
class ImagesResponse(BaseModel): class ImagesResponse(BaseModel):
data: list[Image] data: List[Image]
model: str model: str
provider: str provider: str
created: int created: int
@classmethod @classmethod
def model_construct(cls, data: list[Image], created: int = None, model: str = None, provider: str = None): def model_construct(cls, data: List[Image], created: int = None, model: str = None, provider: str = None):
if created is None: if created is None:
created = int(time()) created = int(time())
return super().model_construct( return super().model_construct(