Skip to content

Commit

Permalink
relative imports
Browse files Browse the repository at this point in the history
  • Loading branch information
casperdcl committed Aug 4, 2021
1 parent ef42425 commit 0b64cfe
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 16 deletions.
6 changes: 3 additions & 3 deletions tqdm/contrib/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
import sys
from functools import wraps

from tqdm import tqdm
from tqdm.auto import tqdm as tqdm_auto
from tqdm.utils import ObjectWrapper
from ..auto import tqdm as tqdm_auto
from ..std import tqdm
from ..utils import ObjectWrapper

__author__ = {"github.com/": ["casperdcl"]}
__all__ = ['tenumerate', 'tzip', 'tmap']
Expand Down
6 changes: 3 additions & 3 deletions tqdm/contrib/bells.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
from os import getenv

if getenv("TQDM_TELEGRAM_TOKEN") and getenv("TQDM_TELEGRAM_CHAT_ID"):
from tqdm.contrib.telegram import tqdm, trange
from .telegram import tqdm, trange
elif getenv("TQDM_DISCORD_TOKEN") and getenv("TQDM_DISCORD_CHANNEL_ID"):
from tqdm.contrib.discord import tqdm, trange
from .discord import tqdm, trange
else:
from tqdm.auto import tqdm, trange
from ..auto import tqdm, trange

with warnings.catch_warnings():
warnings.simplefilter("ignore", category=FutureWarning)
Expand Down
4 changes: 2 additions & 2 deletions tqdm/contrib/concurrent.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@

from contextlib import contextmanager

from tqdm import TqdmWarning
from tqdm.auto import tqdm as tqdm_auto
from ..auto import tqdm as tqdm_auto
from ..std import TqdmWarning

try:
from operator import length_hint
Expand Down
5 changes: 2 additions & 3 deletions tqdm/contrib/discord.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,8 @@
except ImportError:
raise ImportError("Please `pip install disco-py`")

from tqdm.auto import tqdm as tqdm_auto
from tqdm.utils import _range

from ..auto import tqdm as tqdm_auto
from ..utils import _range
from .utils_worker import MonoWorker

__author__ = {"github.com/": ["casperdcl"]}
Expand Down
2 changes: 1 addition & 1 deletion tqdm/contrib/itertools.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import itertools

from tqdm.auto import tqdm as tqdm_auto
from ..auto import tqdm as tqdm_auto

__author__ = {"github.com/": ["casperdcl"]}
__all__ = ['product']
Expand Down
5 changes: 2 additions & 3 deletions tqdm/contrib/telegram.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@

from requests import Session

from tqdm.auto import tqdm as tqdm_auto
from tqdm.utils import _range

from ..auto import tqdm as tqdm_auto
from ..utils import _range
from .utils_worker import MonoWorker

__author__ = {"github.com/": ["casperdcl"]}
Expand Down
2 changes: 1 addition & 1 deletion tqdm/contrib/utils_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from collections import deque
from concurrent.futures import ThreadPoolExecutor

from tqdm.auto import tqdm as tqdm_auto
from ..auto import tqdm as tqdm_auto

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

0 comments on commit 0b64cfe

Please sign in to comment.