mirror of
https://github.com/PaiGramTeam/MibooGram.git
synced 2024-11-24 09:15:24 +00:00
✨ Fix linting issues
This commit is contained in:
parent
8b15e083b7
commit
014986c1ca
@ -2,4 +2,4 @@
|
||||
|
||||
from core.services.devices.services import DevicesService
|
||||
|
||||
__all__ = "DevicesService"
|
||||
__all__ = ("DevicesService",)
|
||||
|
@ -1,4 +1,3 @@
|
||||
import datetime
|
||||
from datetime import datetime
|
||||
from typing import Optional, TYPE_CHECKING
|
||||
|
||||
|
@ -47,7 +47,7 @@ try:
|
||||
from python_genshin_artifact.models.skill import SkillInfo
|
||||
|
||||
GENSHIN_ARTIFACT_FUNCTION_AVAILABLE = True
|
||||
except ImportError as exc:
|
||||
except ImportError:
|
||||
get_damage_analysis = None
|
||||
get_transformative_damage = None
|
||||
enka_parser = None
|
||||
|
@ -10,7 +10,7 @@ __all__ = ("HashLock",)
|
||||
|
||||
_lock: "LockType" = Lock()
|
||||
_locks: Dict[int, "LockType"] = {}
|
||||
_clean_lock_task_map: Dict[int, Task]
|
||||
_clean_lock_task_map: Dict[int, Task] = {}
|
||||
|
||||
|
||||
async def delete_lock(target: int) -> None:
|
||||
@ -42,7 +42,7 @@ class HashLock:
|
||||
target = hash(target)
|
||||
self.target = target
|
||||
|
||||
def __enter__(self) -> None:
|
||||
def __enter__(self) -> bool:
|
||||
# noinspection PyTypeChecker
|
||||
return self.lock.__enter__()
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
# pylint: disable=W0049
|
||||
from typing import NoReturn, Optional, Protocol, TypeVar
|
||||
from typing import Optional, Protocol, TypeVar
|
||||
|
||||
__all__ = ["BaseQueue", "SyncQueue", "AsyncQueue"]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user