trying to fix mypy

This commit is contained in:
ben
2023-01-23 19:57:49 +00:00
parent 617b1c941b
commit 165e5099c1

View File

@@ -220,5 +220,5 @@ class TinyURL(BaseModel):
url: str url: str
@classmethod @classmethod
def from_row(cls, row: Row) -> "TinyURL": def from_row(cls, row: Row):
return cls(**dict(row)) return cls(id=row["id"],url=row["url"])