From d62831ac157f7c0ff71ec1b8ad411de9cd08fa2c Mon Sep 17 00:00:00 2001 From: huuan26 Date: Tue, 3 Nov 2026 13:42:41 +0700 Subject: [PATCH 1/2] [tqdm] Replace Incomplete with concrete types on tqdm attributes --- stubs/tqdm/tqdm/std.pyi | 50 ++++++++++++++++++++--------------------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/stubs/tqdm/tqdm/std.pyi b/stubs/tqdm/tqdm/std.pyi index bfe70a783c02..9059076506a8 100644 --- a/stubs/tqdm/tqdm/std.pyi +++ b/stubs/tqdm/tqdm/std.pyi @@ -168,35 +168,35 @@ class tqdm(Comparable, Generic[_T]): iterable: Incomplete disable: bool | None - pos: Incomplete - n: Incomplete + pos: int + n: float | int total: float | int | None - leave: Incomplete + leave: bool | None desc: str fp: Incomplete - ncols: Incomplete - nrows: Incomplete - mininterval: Incomplete - maxinterval: Incomplete - miniters: Incomplete - dynamic_miniters: Incomplete - ascii: Incomplete - unit: Incomplete - unit_scale: Incomplete - unit_divisor: Incomplete - initial: Incomplete - lock_args: Incomplete - delay: Incomplete - gui: Incomplete - dynamic_ncols: Incomplete - smoothing: Incomplete - bar_format: Incomplete - postfix: Incomplete - colour: Incomplete - last_print_n: Incomplete + ncols: int | None + nrows: int | None + mininterval: float + maxinterval: float + miniters: float | None + dynamic_miniters: bool + ascii: bool | str | None + unit: str + unit_scale: bool | float + unit_divisor: float + initial: float + lock_args: tuple[bool | None, float | None] | tuple[bool | None] | None + delay: float | None + gui: bool + dynamic_ncols: bool + smoothing: float + bar_format: str | None + postfix: Mapping[str, object] | str | None + colour: str | None + last_print_n: float | int sp: Incomplete - last_print_t: Incomplete - start_t: Incomplete + last_print_t: float + start_t: float def __bool__(self) -> bool: ... def __len__(self) -> int: ... From 7cceb2cdcebf9bd9582896850d4857b1e65bad62 Mon Sep 17 00:00:00 2001 From: huuan26 Date: Thu, 5 Nov 2026 11:26:06 +0700 Subject: [PATCH 2/2] [tqdm] Fix tqdm_notebook.colour property and setter type to str | None --- stubs/tqdm/tqdm/notebook.pyi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stubs/tqdm/tqdm/notebook.pyi b/stubs/tqdm/tqdm/notebook.pyi index a2b329235b79..58122b8dd9ef 100644 --- a/stubs/tqdm/tqdm/notebook.pyi +++ b/stubs/tqdm/tqdm/notebook.pyi @@ -25,9 +25,9 @@ class tqdm_notebook(std_tqdm[_T]): ) -> None: ... @property - def colour(self): ... + def colour(self) -> str | None: ... @colour.setter - def colour(self, bar_color: str) -> None: ... + def colour(self, bar_color: str | None) -> None: ... disp: Incomplete ncols: Incomplete