Skip to content

Commit

Permalink
Fix up import errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ayjayt committed Jan 6, 2025
1 parent 1a1503f commit 7a3ae8a
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 16 deletions.
18 changes: 9 additions & 9 deletions choreographer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,25 @@
as a building block.
"""

from ._browser_sync import ( # noqa: F401 unused import
BrowserSync,
SessionSync,
TabSync,
TargetSync,
)
from ._browsers import ( # noqa: F401 unused import
BrowserClosedError,
BrowserFailedError,
Chromium,
)
from ._channels import BlockWarning, ChannelClosedError # noqa: F401 unused import
from ._cli_utils import get_browser, get_browser_sync # noqa: F401 unused import
from ._cli_utils import get_chrome, get_chrome_sync # noqa: F401 unused import
from ._sys_utils import ( # noqa: F401 unused import
TmpDirectory,
TmpDirWarning,
browser_which,
get_browser_path,
)
from .browser_sync import ( # noqa: F401 unused import
BrowserSync,
SessionSync,
TabSync,
TargetSync,
)

_sync_api = [
"BrowserSync",
Expand All @@ -46,8 +46,8 @@
]

_utils = [
"get_browser",
"get_browser_sync",
"get_chrome",
"get_chrome_sync",
"TmpDirectory",
"browser_which",
"get_browser_path",
Expand Down
3 changes: 1 addition & 2 deletions choreographer/_brokers/_sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
from threading import Thread

from choreographer import protocol

from ._channels import ChannelClosedError
from choreographer._channels import ChannelClosedError


class BrokerSync:
Expand Down
3 changes: 2 additions & 1 deletion choreographer/_channels/_wire.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import simplejson
from channel._errors import JSONError

from ._errors import JSONError


class MultiEncoder(simplejson.JSONEncoder):
Expand Down
4 changes: 2 additions & 2 deletions choreographer/_channels/pipe.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
import warnings
from threading import Lock

import channel._wire as wire
from channel._errors import BlockWarning, ChannelClosedError, JSONError
from . import _wire as wire
from ._errors import BlockWarning, ChannelClosedError, JSONError

_with_block = bool(sys.version_info[:3] >= (3, 12) or platform.system() != "Windows")

Expand Down
2 changes: 1 addition & 1 deletion choreographer/_sys_utils/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from ._kill.py import kill
from ._kill import kill
from ._tmpfile import TmpDirectory, TmpDirWarning
from ._which import browser_which, get_browser_path

Expand Down
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7a3ae8a

Please sign in to comment.