trying to fix mypy
This commit is contained in:
parent
617b1c941b
commit
165e5099c1
1 changed files with 2 additions and 2 deletions
|
|
@ -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"])
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue