Skip to content

Commit 5f1ac23

Browse files
committed
fix mypy
1 parent 9f33e34 commit 5f1ac23

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

sentry_sdk/integrations/strawberry.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
from graphql import GraphQLError, GraphQLResolveInfo
5656
from strawberry.http import GraphQLHTTPResponse
5757
from strawberry.types import ExecutionContext
58-
from sentry_sdk._types import Event, EventProcessor
58+
from sentry_sdk._types import Attributes, Event, EventProcessor
5959
from sentry_sdk.tracing import Span
6060

6161

@@ -189,7 +189,7 @@ def on_operation(self) -> "Generator[None, None, None]":
189189

190190
self.graphql_span: "Union[Span, StreamedSpan]"
191191
if span_streaming:
192-
attributes = {
192+
attributes: "Attributes" = {
193193
"sentry.op": op,
194194
"sentry.origin": StrawberryIntegration.origin,
195195
"graphql.operation.type": operation_type,

0 commit comments

Comments
 (0)