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

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

No files matched your search

+1 -3
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]]: ...