Skip to content

Commit

Permalink
Avoid redundant relative imports (agronholm#263)
Browse files Browse the repository at this point in the history
eg imports that reach up out of the current package then back down
  • Loading branch information
graingert committed Apr 22, 2021
1 parent 2ccd7d1 commit 5169f1d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/anyio/_core/_eventloop.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import sniffio

# This must be updated when new backends are introduced
from anyio._core._compat import DeprecatedAwaitableFloat
from ._compat import DeprecatedAwaitableFloat

BACKENDS = 'asyncio', 'trio'

Expand Down
2 changes: 1 addition & 1 deletion src/anyio/_core/_testing.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from typing import Coroutine, Optional

from .._core._eventloop import get_asynclib
from ._compat import DeprecatedAwaitable, DeprecatedAwaitableList
from ._eventloop import get_asynclib


class TaskInfo(DeprecatedAwaitable):
Expand Down
2 changes: 1 addition & 1 deletion src/anyio/_core/_typedattr.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import sys
from typing import Callable, Mapping, TypeVar, Union, overload

from .._core._exceptions import TypedAttributeLookupError
from ._exceptions import TypedAttributeLookupError

if sys.version_info >= (3, 8):
from typing import final
Expand Down

0 comments on commit 5169f1d

Please sign in to comment.