🚨 make linter happy (#2286)

This commit is contained in:
Ju4tCode
2023-08-18 19:07:35 +08:00
committed by GitHub
parent 53bcae04ff
commit 9c4ca28d61
5 changed files with 26 additions and 25 deletions

View File

@ -1,6 +1,5 @@
from typing import (
TYPE_CHECKING,
Any,
List,
Type,
Tuple,
@ -53,7 +52,7 @@ class MatcherManager(MutableMapping[int, List[Type["Matcher"]]]):
def __delitem__(self, key: int) -> None:
del self.provider[key]
def __eq__(self, other: Any) -> bool:
def __eq__(self, other: object) -> bool:
return isinstance(other, MatcherManager) and self.provider == other.provider
def keys(self) -> KeysView[int]: