From 8e54eacf5d97d745a91530c7464026487294658b Mon Sep 17 00:00:00 2001 From: Divyanshudevtalla Date: Sun, 1 Feb 2026 09:00:35 +0530 Subject: [PATCH] Remove variadic args from tqdm stubs to match runtime --- stubs/tqdm/METADATA.toml | 1 + stubs/tqdm/tqdm/__init__.pyi | 4 ++-- stubs/tqdm/tqdm/std.pyi | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/stubs/tqdm/METADATA.toml b/stubs/tqdm/METADATA.toml index f218397eb207..b08b4221c0e5 100644 --- a/stubs/tqdm/METADATA.toml +++ b/stubs/tqdm/METADATA.toml @@ -8,3 +8,4 @@ extras = ["slack", "telegram"] # Python 3.13: https://github.com/tensorflow/tensorflow/issues/78774. # Also remove tqdm.keras from @tests/stubtest_allowlist.txt. stubtest_requirements = ["dask", "pandas", "rich"] +stubtest_ignore = ["tqdm_dist_ver"] diff --git a/stubs/tqdm/tqdm/__init__.pyi b/stubs/tqdm/tqdm/__init__.pyi index a48d6f41ff7d..40dc61c9dbb6 100644 --- a/stubs/tqdm/tqdm/__init__.pyi +++ b/stubs/tqdm/tqdm/__init__.pyi @@ -37,5 +37,5 @@ __all__ = [ "__version__", ] -def tqdm_notebook(*args, **kwargs) -> tqdm_notebook_cls[Incomplete]: ... -def tnrange(*args, **kwargs) -> tqdm_notebook_cls[int]: ... +def tqdm_notebook(*args) -> tqdm_notebook_cls[Incomplete]: ... +def tnrange(*args) -> tqdm_notebook_cls[int]: ... diff --git a/stubs/tqdm/tqdm/std.pyi b/stubs/tqdm/tqdm/std.pyi index e5e84eeec8a4..975e7170fe97 100644 --- a/stubs/tqdm/tqdm/std.pyi +++ b/stubs/tqdm/tqdm/std.pyi @@ -23,7 +23,7 @@ class TqdmTypeError(TypeError): ... class TqdmKeyError(KeyError): ... class TqdmWarning(Warning): - def __init__(self, msg, fp_write=None, *a, **k) -> None: ... + def __init__(self, msg, fp_write=None) -> None: ... class TqdmExperimentalWarning(TqdmWarning, FutureWarning): ... class TqdmDeprecationWarning(TqdmWarning, DeprecationWarning): ...