We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f3c7366 commit 60a3f06Copy full SHA for 60a3f06
sentry_sdk/integrations/opentelemetry/span_processor.py
@@ -86,7 +86,8 @@ def __new__(cls) -> "SentrySpanProcessor":
86
if not hasattr(cls, "instance"):
87
cls.instance = super().__new__(cls)
88
89
- return cls.instance
+ # "instance" class attribute is guaranteed to be set above (mypy believes instance is an instance-only attribute).
90
+ return cls.instance # type: ignore[misc]
91
92
def __init__(self) -> None:
93
@add_global_event_processor
0 commit comments