diff --git a/stubs/tqdm/tqdm/utils.pyi b/stubs/tqdm/tqdm/utils.pyi index b9b0cc92a271..a3e62e6c6453 100644 --- a/stubs/tqdm/tqdm/utils.pyi +++ b/stubs/tqdm/tqdm/utils.pyi @@ -44,7 +44,7 @@ _R = TypeVar("_R") class DisableOnWriteError(ObjectWrapper): @staticmethod - def disable_on_exception(tqdm_instance, func: Callable[_P, _R]) -> Callable[_P, _R]: ... + def disable_on_exception(tqdm_instance, func: Callable[_P, _R]) -> Callable[_P, _R | None]: ... def __init__(self, wrapped, tqdm_instance) -> None: ... def __eq__(self, other: object) -> bool: ...