Skip to content

Commit e681bdb

Browse files
Fix circular import
1 parent 65d830b commit e681bdb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

sentry_sdk/utils.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,10 @@
2525
BaseExceptionGroup = None # type: ignore
2626

2727
import sentry_sdk
28+
import sentry_sdk.consts as consts
2829
from sentry_sdk._compat import PY37
2930
from sentry_sdk._types import TYPE_CHECKING
30-
from sentry_sdk.consts import DEFAULT_MAX_VALUE_LENGTH, EndpointType
31+
from sentry_sdk.consts import DEFAULT_MAX_VALUE_LENGTH
3132

3233
if TYPE_CHECKING:
3334
from types import FrameType, TracebackType
@@ -306,7 +307,7 @@ def __init__(
306307
self.client = client
307308

308309
def get_api_url(
309-
self, type=EndpointType.ENVELOPE # type: EndpointType
310+
self, type=consts.EndpointType.ENVELOPE # type: consts.EndpointType
310311
):
311312
# type: (...) -> str
312313
"""Returns the API url for storing events."""

0 commit comments

Comments
 (0)