Skip to content

Commit 60a3f06

Browse files
ci(opentelemetry): Ignore mypy error (#5927)
1 parent f3c7366 commit 60a3f06

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sentry_sdk/integrations/opentelemetry/span_processor.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,8 @@ def __new__(cls) -> "SentrySpanProcessor":
8686
if not hasattr(cls, "instance"):
8787
cls.instance = super().__new__(cls)
8888

89-
return cls.instance
89+
# "instance" class attribute is guaranteed to be set above (mypy believes instance is an instance-only attribute).
90+
return cls.instance # type: ignore[misc]
9091

9192
def __init__(self) -> None:
9293
@add_global_event_processor

0 commit comments

Comments
 (0)