summaryrefslogtreecommitdiffhomepage
path: root/libs/tqdm/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'libs/tqdm/__init__.py')
-rw-r--r--libs/tqdm/__init__.py21
1 files changed, 11 insertions, 10 deletions
diff --git a/libs/tqdm/__init__.py b/libs/tqdm/__init__.py
index 670d6457e..a021d16e9 100644
--- a/libs/tqdm/__init__.py
+++ b/libs/tqdm/__init__.py
@@ -1,13 +1,12 @@
-from .std import tqdm, trange
-from .gui import tqdm as tqdm_gui # TODO: remove in v5.0.0
-from .gui import trange as tgrange # TODO: remove in v5.0.0
+from ._monitor import TMonitor, TqdmSynchronisationWarning
from ._tqdm_pandas import tqdm_pandas
from .cli import main # TODO: remove in v5.0.0
-from ._monitor import TMonitor, TqdmSynchronisationWarning
-from ._version import __version__ # NOQA
-from .std import TqdmTypeError, TqdmKeyError, TqdmWarning, \
- TqdmDeprecationWarning, TqdmExperimentalWarning, \
- TqdmMonitorWarning
+from .gui import tqdm as tqdm_gui # TODO: remove in v5.0.0
+from .gui import trange as tgrange # TODO: remove in v5.0.0
+from .std import (
+ TqdmDeprecationWarning, TqdmExperimentalWarning, TqdmKeyError, TqdmMonitorWarning,
+ TqdmTypeError, TqdmWarning, tqdm, trange)
+from .version import __version__
__all__ = ['tqdm', 'tqdm_gui', 'trange', 'tgrange', 'tqdm_pandas',
'tqdm_notebook', 'tnrange', 'main', 'TMonitor',
@@ -20,8 +19,9 @@ __all__ = ['tqdm', 'tqdm_gui', 'trange', 'tgrange', 'tqdm_pandas',
def tqdm_notebook(*args, **kwargs): # pragma: no cover
"""See tqdm.notebook.tqdm for full documentation"""
- from .notebook import tqdm as _tqdm_notebook
from warnings import warn
+
+ from .notebook import tqdm as _tqdm_notebook
warn("This function will be removed in tqdm==5.0.0\n"
"Please use `tqdm.notebook.tqdm` instead of `tqdm.tqdm_notebook`",
TqdmDeprecationWarning, stacklevel=2)
@@ -33,8 +33,9 @@ def tnrange(*args, **kwargs): # pragma: no cover
A shortcut for `tqdm.notebook.tqdm(xrange(*args), **kwargs)`.
On Python3+, `range` is used instead of `xrange`.
"""
- from .notebook import trange as _tnrange
from warnings import warn
+
+ from .notebook import trange as _tnrange
warn("Please use `tqdm.notebook.trange` instead of `tqdm.tnrange`",
TqdmDeprecationWarning, stacklevel=2)
return _tnrange(*args, **kwargs)