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