mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2024-11-19 18:11:30 +01:00
trying to fix mypy
This commit is contained in:
parent
617b1c941b
commit
165e5099c1
@ -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"])
|
||||
|
Loading…
Reference in New Issue
Block a user