mirror of
https://github.com/lnbits/lnbits.git
synced 2025-10-10 04:22:35 +02:00
trying to fix mypy
This commit is contained in:
@@ -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"])
|
||||||
|
Reference in New Issue
Block a user