Skip to content

Commit eebc385

Browse files
committed
mypy
1 parent 507306f commit eebc385

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

sentry_sdk/integrations/_asgi_common.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
from typing import Union
1313
from typing_extensions import Literal
1414

15-
from sentry_sdk._types import Attributes
1615
from sentry_sdk.utils import AnnotatedValue
1716

1817

@@ -112,7 +111,7 @@ def _get_request_attributes(asgi_scope: "Any") -> "dict[str, Any]":
112111
"""
113112
Return attributes related to the HTTP request from the ASGI scope.
114113
"""
115-
attributes: "Attributes" = {}
114+
attributes: "dict[str, Any]" = {}
116115

117116
ty = asgi_scope["type"]
118117
if ty in ("http", "websocket"):

sentry_sdk/integrations/_wsgi_common.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,7 @@ def _filter_headers(
217217
if should_send_default_pii():
218218
return headers
219219

220+
substitute: "Union[AnnotatedValue, str]"
220221
if use_annotated_value:
221222
substitute = AnnotatedValue.removed_because_over_size_limit()
222223
else:

0 commit comments

Comments
 (0)