Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.11/site-packages/tqdm/__init__.py: 100%

Shortcuts on this page

r m x   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

8 statements  

1from ._monitor import TMonitor, TqdmSynchronisationWarning 

2from ._tqdm_pandas import tqdm_pandas 

3from .cli import main # TODO: remove in v5.0.0 

4from .gui import tqdm as tqdm_gui # TODO: remove in v5.0.0 

5from .gui import trange as tgrange # TODO: remove in v5.0.0 

6from .std import ( 

7 TqdmDeprecationWarning, TqdmExperimentalWarning, TqdmKeyError, TqdmMonitorWarning, 

8 TqdmTypeError, TqdmWarning, tqdm, trange) 

9from .version import __version__ 

10 

11__all__ = ['tqdm', 'tqdm_gui', 'trange', 'tgrange', 'tqdm_pandas', 

12 'tqdm_notebook', 'tnrange', 'main', 'TMonitor', 

13 'TqdmTypeError', 'TqdmKeyError', 

14 'TqdmWarning', 'TqdmDeprecationWarning', 

15 'TqdmExperimentalWarning', 

16 'TqdmMonitorWarning', 'TqdmSynchronisationWarning', 

17 '__version__'] 

18 

19 

20def tqdm_notebook(*args, **kwargs): # pragma: no cover 

21 """See tqdm.notebook.tqdm for full documentation""" 

22 from warnings import warn 

23 

24 from .notebook import tqdm as _tqdm_notebook 

25 warn("This function will be removed in tqdm==5.0.0\n" 

26 "Please use `tqdm.notebook.tqdm` instead of `tqdm.tqdm_notebook`", 

27 TqdmDeprecationWarning, stacklevel=2) 

28 return _tqdm_notebook(*args, **kwargs) 

29 

30 

31def tnrange(*args, **kwargs): # pragma: no cover 

32 """Shortcut for `tqdm.notebook.tqdm(range(*args), **kwargs)`.""" 

33 from warnings import warn 

34 

35 from .notebook import trange as _tnrange 

36 warn("Please use `tqdm.notebook.trange` instead of `tqdm.tnrange`", 

37 TqdmDeprecationWarning, stacklevel=2) 

38 return _tnrange(*args, **kwargs)