From 165e5099c12fcbd8963f6cf4a9c9259164b722e5 Mon Sep 17 00:00:00 2001 From: ben Date: Mon, 23 Jan 2023 19:57:49 +0000 Subject: [PATCH] trying to fix mypy --- lnbits/core/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lnbits/core/models.py b/lnbits/core/models.py index effd89db..d6f47ff5 100644 --- a/lnbits/core/models.py +++ b/lnbits/core/models.py @@ -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"])