Remove unused type: ignore comments (#9801)

This commit is contained in:
Alex Waygood
2023-02-23 20:59:50 +00:00
committed by GitHub
parent 06755e10ba
commit 6ba28ae547
20 changed files with 39 additions and 40 deletions

View File

@@ -57,9 +57,8 @@ class SequenceMatcher(Generic[_T]):
if sys.version_info >= (3, 9):
def __class_getitem__(cls, item: Any) -> GenericAlias: ...
# mypy thinks the signatures of the overloads overlap, but the types still work fine
@overload
def get_close_matches(word: AnyStr, possibilities: Iterable[AnyStr], n: int = 3, cutoff: float = 0.6) -> list[AnyStr]: ... # type: ignore[misc]
def get_close_matches(word: AnyStr, possibilities: Iterable[AnyStr], n: int = 3, cutoff: float = 0.6) -> list[AnyStr]: ...
@overload
def get_close_matches(
word: Sequence[_T], possibilities: Iterable[Sequence[_T]], n: int = 3, cutoff: float = 0.6