Third-party stubs: remove unused type: ignores (#11063)

This commit is contained in:
Alex Waygood
2023-11-23 13:35:45 +00:00
committed by GitHub
parent b04e50d522
commit 1d2fe59e88
21 changed files with 41 additions and 44 deletions

View File

@@ -13,9 +13,7 @@ def logging_redirect_tqdm(
) -> _GeneratorContextManager[None]: ...
# TODO type *args, **kwargs here more precisely
# The type ignore is because mypy complains that the second overload will never be matched
# (I'm not sure that's true)
@overload
def tqdm_logging_redirect(*args, tqdm_class: Callable[..., _TqdmT], **kwargs) -> _GeneratorContextManager[_TqdmT]: ...
@overload
def tqdm_logging_redirect(*args, **kwargs) -> _GeneratorContextManager[std_tqdm[Incomplete]]: ... # type: ignore[misc]
def tqdm_logging_redirect(*args, **kwargs) -> _GeneratorContextManager[std_tqdm[Incomplete]]: ...