[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
1 changed files with 3 additions and 3 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue