mirror of
https://github.com/lnbits/lnbits.git
synced 2025-06-07 13:42:06 +02:00
[CHORE] fix pyright warning in db.py (#1868)
```warning: Class methods should take a "cls" parameter (reportSelfClsParameterName)```
This commit is contained in:
parent
f0a66e41fb
commit
26a0633d49
@ -295,10 +295,10 @@ class Database(Compat):
|
|||||||
yield conn
|
yield conn
|
||||||
|
|
||||||
@classmethod
|
@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.
|
If the extension DB is stored directly on the filesystem (like SQLite) then
|
||||||
Otherwise do nothing and return False.
|
delete the files and return True. Otherwise do nothing and return False.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
if DB_TYPE == SQLITE:
|
if DB_TYPE == SQLITE:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user