From 1d6420c7aeea51174d29882aa3fed445a0035f88 Mon Sep 17 00:00:00 2001 From: Neel Shah Date: Mon, 29 Jul 2024 14:08:14 +0200 Subject: [PATCH] Fix sphinx circular import bs --- sentry_sdk/consts.py | 6 ++---- sentry_sdk/utils.py | 1 - 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/sentry_sdk/consts.py b/sentry_sdk/consts.py index 9a7823dbfb..af36e34b08 100644 --- a/sentry_sdk/consts.py +++ b/sentry_sdk/consts.py @@ -32,8 +32,6 @@ class EndpointType(Enum): from typing import Tuple from typing_extensions import TypedDict - from sentry_sdk.integrations import Integration - from sentry_sdk._types import ( BreadcrumbProcessor, ContinuousProfilerMode, @@ -487,7 +485,7 @@ def __init__( environment=None, # type: Optional[str] server_name=None, # type: Optional[str] shutdown_timeout=2, # type: float - integrations=[], # type: Sequence[Integration] # noqa: B006 + integrations=[], # type: Sequence[sentry_sdk.integrations.Integration] # noqa: B006 in_app_include=[], # type: List[str] # noqa: B006 in_app_exclude=[], # type: List[str] # noqa: B006 default_integrations=True, # type: bool @@ -514,7 +512,7 @@ def __init__( profiles_sampler=None, # type: Optional[TracesSampler] profiler_mode=None, # type: Optional[ProfilerMode] auto_enabling_integrations=True, # type: bool - disabled_integrations=None, # type: Optional[Sequence[Integration]] + disabled_integrations=None, # type: Optional[Sequence[sentry_sdk.integrations.Integration]] auto_session_tracking=True, # type: bool send_client_reports=True, # type: bool _experiments={}, # type: Experiments # noqa: B006 diff --git a/sentry_sdk/utils.py b/sentry_sdk/utils.py index 783cfbe361..862eedae9c 100644 --- a/sentry_sdk/utils.py +++ b/sentry_sdk/utils.py @@ -54,7 +54,6 @@ from gevent.hub import Hub - import sentry_sdk.integrations from sentry_sdk._types import Event, ExcInfo P = ParamSpec("P")