Skip to content

Commit d5920bc

Browse files
reorder imports to fix circular import in APIDocs
1 parent 1ee620a commit d5920bc

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

sentry_sdk/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
from sentry_sdk._init_implementation import init
21
from sentry_sdk.hub import Hub
32
from sentry_sdk.scope import Scope
43
from sentry_sdk.transport import Transport, HttpTransport
54
from sentry_sdk.client import Client
5+
from sentry_sdk._init_implementation import init
66

77
from sentry_sdk.api import * # noqa
88

sentry_sdk/_init_implementation.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44

55
if TYPE_CHECKING:
66
from typing import Any, ContextManager, Optional
7-
from sentry_sdk.consts import ClientConstructor
7+
8+
import sentry_sdk.consts
89

910

1011
class _InitGuard:
@@ -51,7 +52,7 @@ def _init(*args, **kwargs):
5152
# Use `ClientConstructor` to define the argument types of `init` and
5253
# `ContextManager[Any]` to tell static analyzers about the return type.
5354

54-
class init(ClientConstructor, _InitGuard): # noqa: N801
55+
class init(sentry_sdk.consts.ClientConstructor, _InitGuard): # noqa: N801
5556
pass
5657

5758
else:

0 commit comments

Comments
 (0)