Skip to content

Commit 0b64cfe

Browse files
committed
relative imports
1 parent ef42425 commit 0b64cfe

File tree

7 files changed

+14
-16
lines changed

7 files changed

+14
-16
lines changed

tqdm/contrib/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
import sys
77
from functools import wraps
88

9-
from tqdm import tqdm
10-
from tqdm.auto import tqdm as tqdm_auto
11-
from tqdm.utils import ObjectWrapper
9+
from ..auto import tqdm as tqdm_auto
10+
from ..std import tqdm
11+
from ..utils import ObjectWrapper
1212

1313
__author__ = {"github.com/": ["casperdcl"]}
1414
__all__ = ['tenumerate', 'tzip', 'tmap']

tqdm/contrib/bells.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313
from os import getenv
1414

1515
if getenv("TQDM_TELEGRAM_TOKEN") and getenv("TQDM_TELEGRAM_CHAT_ID"):
16-
from tqdm.contrib.telegram import tqdm, trange
16+
from .telegram import tqdm, trange
1717
elif getenv("TQDM_DISCORD_TOKEN") and getenv("TQDM_DISCORD_CHANNEL_ID"):
18-
from tqdm.contrib.discord import tqdm, trange
18+
from .discord import tqdm, trange
1919
else:
20-
from tqdm.auto import tqdm, trange
20+
from ..auto import tqdm, trange
2121

2222
with warnings.catch_warnings():
2323
warnings.simplefilter("ignore", category=FutureWarning)

tqdm/contrib/concurrent.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55

66
from contextlib import contextmanager
77

8-
from tqdm import TqdmWarning
9-
from tqdm.auto import tqdm as tqdm_auto
8+
from ..auto import tqdm as tqdm_auto
9+
from ..std import TqdmWarning
1010

1111
try:
1212
from operator import length_hint

tqdm/contrib/discord.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,8 @@
1818
except ImportError:
1919
raise ImportError("Please `pip install disco-py`")
2020

21-
from tqdm.auto import tqdm as tqdm_auto
22-
from tqdm.utils import _range
23-
21+
from ..auto import tqdm as tqdm_auto
22+
from ..utils import _range
2423
from .utils_worker import MonoWorker
2524

2625
__author__ = {"github.com/": ["casperdcl"]}

tqdm/contrib/itertools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
import itertools
77

8-
from tqdm.auto import tqdm as tqdm_auto
8+
from ..auto import tqdm as tqdm_auto
99

1010
__author__ = {"github.com/": ["casperdcl"]}
1111
__all__ = ['product']

tqdm/contrib/telegram.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,8 @@
1414

1515
from requests import Session
1616

17-
from tqdm.auto import tqdm as tqdm_auto
18-
from tqdm.utils import _range
19-
17+
from ..auto import tqdm as tqdm_auto
18+
from ..utils import _range
2019
from .utils_worker import MonoWorker
2120

2221
__author__ = {"github.com/": ["casperdcl"]}

tqdm/contrib/utils_worker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from collections import deque
77
from concurrent.futures import ThreadPoolExecutor
88

9-
from tqdm.auto import tqdm as tqdm_auto
9+
from ..auto import tqdm as tqdm_auto
1010

1111
__author__ = {"github.com/": ["casperdcl"]}
1212
__all__ = ['MonoWorker']

0 commit comments

Comments
 (0)