[CHORE] fix pyright warning in db.py (#1868)

```warning: Class methods should take a "cls" parameter (reportSelfClsParameterName)```
This commit is contained in:
dni ⚡ 2023-08-16 12:41:49 +02:00 committed by GitHub
parent f0a66e41fb
commit 26a0633d49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: