From 26a0633d499cd545470bd2addc7a44e6c0e55c45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?dni=20=E2=9A=A1?= Date: Wed, 16 Aug 2023 12:41:49 +0200 Subject: [PATCH] [CHORE] fix pyright warning in db.py (#1868) ```warning: Class methods should take a "cls" parameter (reportSelfClsParameterName)``` --- lnbits/db.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lnbits/db.py b/lnbits/db.py index 7dc0baba1..fdd791d4f 100644 --- a/lnbits/db.py +++ b/lnbits/db.py @@ -295,10 +295,10 @@ class Database(Compat): yield conn @classmethod - async def clean_ext_db_files(self, ext_id: str) -> bool: + async def clean_ext_db_files(cls, ext_id: str) -> bool: """ - If the extension DB is stored directly on the filesystem (like SQLite) then delete the files and return True. - Otherwise do nothing and return False. + If the extension DB is stored directly on the filesystem (like SQLite) then + delete the files and return True. Otherwise do nothing and return False. """ if DB_TYPE == SQLITE: