From dfa6a75af6c07d93c44ffadfbfe9bc0e0897f3b9 Mon Sep 17 00:00:00 2001 From: Gabriel Smith Date: Tue, 22 Nov 2022 14:39:14 -0500 Subject: [PATCH] tqdm: Add missing tqdm.monitor class variable (#9249) Co-authored-by: Gabriel Smith --- stubs/tqdm/tqdm/std.pyi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stubs/tqdm/tqdm/std.pyi b/stubs/tqdm/tqdm/std.pyi index 9589dda00..bd1526e20 100644 --- a/stubs/tqdm/tqdm/std.pyi +++ b/stubs/tqdm/tqdm/std.pyi @@ -4,6 +4,7 @@ from collections.abc import Callable, Iterable, Iterator, Mapping, MutableMappin from typing import Any, ClassVar, Generic, NoReturn, TypeVar, overload from typing_extensions import Literal +from ._monitor import TMonitor from .utils import Comparable __all__ = [ @@ -31,6 +32,7 @@ _T = TypeVar("_T") class tqdm(Generic[_T], Iterable[_T], Comparable): monitor_interval: ClassVar[int] + monitor: ClassVar[TMonitor | None] @staticmethod def format_sizeof(num: float, suffix: str = ..., divisor: float = ...) -> str: ...