diff --git a/stubs/tqdm/tqdm/std.pyi b/stubs/tqdm/tqdm/std.pyi index 69dfa3c85a1c..744b715be954 100644 --- a/stubs/tqdm/tqdm/std.pyi +++ b/stubs/tqdm/tqdm/std.pyi @@ -224,7 +224,8 @@ class tqdm(Comparable, Generic[_T]): def moveto(self, n) -> None: ... @property def format_dict(self) -> MutableMapping[str, Any]: ... - def display(self, msg: str | None = None, pos: int | None = None) -> None: ... + # Subclasses such as tqdm_rich can override display() without returning a value. + def display(self, msg: str | None = None, pos: int | None = None) -> bool | None: ... @overload @classmethod