diff --git a/stubs/tqdm/tqdm/notebook.pyi b/stubs/tqdm/tqdm/notebook.pyi index 8989b56744bd..51c0b209473f 100644 --- a/stubs/tqdm/tqdm/notebook.pyi +++ b/stubs/tqdm/tqdm/notebook.pyi @@ -97,7 +97,7 @@ class tqdm_notebook(std_tqdm[_T]): ) -> None: ... def __iter__(self) -> Iterator[_T]: ... - def update(self, n: int = 1): ... # type: ignore[override] + def update(self, n: float | int = 1) -> bool | None: ... def close(self) -> None: ... def clear(self, *_, **__) -> None: ... def reset(self, total: FloatInt | None = None): ... diff --git a/stubs/tqdm/tqdm/std.pyi b/stubs/tqdm/tqdm/std.pyi index 69dfa3c85a1c..6c4f090c2226 100644 --- a/stubs/tqdm/tqdm/std.pyi +++ b/stubs/tqdm/tqdm/std.pyi @@ -209,7 +209,7 @@ class tqdm(Comparable, Generic[_T]): def __del__(self) -> None: ... def __hash__(self) -> int: ... def __iter__(self) -> Iterator[_T]: ... - def update(self, n: FloatInt | None = 1) -> bool | None: ... + def update(self, n: float | int = 1) -> bool | None: ... def close(self) -> None: ... def clear(self, nolock: bool = False) -> None: ... def refresh(