Skip to content

Commit 0764f9f

Browse files
authored
tqdm: Add __all__ to __init__.pyi and submodules (#8308)
Fixes #8307
1 parent ed0b3a4 commit 0764f9f

23 files changed

+73
-0
lines changed

stubs/tqdm/tqdm/__init__.pyi

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,27 @@ from .std import (
1515
tqdm as tqdm,
1616
trange as trange,
1717
)
18+
from .version import __version__ as __version__
19+
20+
__all__ = [
21+
"tqdm",
22+
"tqdm_gui",
23+
"trange",
24+
"tgrange",
25+
"tqdm_pandas",
26+
"tqdm_notebook",
27+
"tnrange",
28+
"main",
29+
"TMonitor",
30+
"TqdmTypeError",
31+
"TqdmKeyError",
32+
"TqdmWarning",
33+
"TqdmDeprecationWarning",
34+
"TqdmExperimentalWarning",
35+
"TqdmMonitorWarning",
36+
"TqdmSynchronisationWarning",
37+
"__version__",
38+
]
1839

1940
def tqdm_notebook(*args, **kwargs) -> tqdm_notebook_cls[Incomplete]: ...
2041
def tnrange(*args, **kwargs) -> tqdm_notebook_cls[int]: ...

stubs/tqdm/tqdm/_monitor.pyi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
from _typeshed import Incomplete
22
from threading import Thread
33

4+
__all__ = ["TMonitor", "TqdmSynchronisationWarning"]
5+
46
class TqdmSynchronisationWarning(RuntimeWarning): ...
57

68
class TMonitor(Thread):

stubs/tqdm/tqdm/_tqdm_pandas.pyi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1+
__all__ = ["tqdm_pandas"]
2+
13
def tqdm_pandas(tclass, **tqdm_kwargs) -> None: ...

stubs/tqdm/tqdm/asyncio.pyi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ from typing import Generic, NoReturn, TypeVar, overload
44

55
from .std import tqdm as std_tqdm
66

7+
__all__ = ["tqdm_asyncio", "tarange", "tqdm", "trange"]
8+
79
_T = TypeVar("_T")
810

911
class tqdm_asyncio(Generic[_T], std_tqdm[_T]):

stubs/tqdm/tqdm/auto.pyi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
from .asyncio import tqdm as tqdm, trange as trange
2+
3+
__all__ = ["tqdm", "trange"]

stubs/tqdm/tqdm/autonotebook.pyi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
from .std import tqdm as tqdm, trange as trange
2+
3+
__all__ = ["tqdm", "trange"]

stubs/tqdm/tqdm/cli.pyi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
from collections.abc import Sequence
22

3+
__all__ = ["main"]
4+
35
def main(fp=..., argv: Sequence[str] | None = ...) -> None: ...

stubs/tqdm/tqdm/contrib/__init__.pyi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ from collections.abc import Callable, Generator
33

44
from ..utils import ObjectWrapper
55

6+
__all__ = ["tenumerate", "tzip", "tmap"]
7+
68
class DummyTqdmFile(ObjectWrapper):
79
def __init__(self, wrapped) -> None: ...
810
def write(self, x, nolock: bool = ...) -> None: ...

stubs/tqdm/tqdm/contrib/bells.pyi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
from ..auto import tqdm as tqdm, trange as trange
2+
3+
__all__ = ["tqdm", "trange"]
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1+
__all__ = ["thread_map", "process_map"]
2+
13
def thread_map(fn, *iterables, **tqdm_kwargs): ...
24
def process_map(fn, *iterables, **tqdm_kwargs): ...

0 commit comments

Comments
 (0)