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
@classmethod
def from_row(cls, row: Row) -> "TinyURL":
return cls(**dict(row))
def from_row(cls, row: Row):
return cls(id=row["id"],url=row["url"])