Skip to content

Commit e7dcb1f

Browse files
committed
new mypy
1 parent 64ffbf0 commit e7dcb1f

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

sentry_sdk/_types.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ class SDKInfo(TypedDict):
170170
"contexts": dict[str, dict[str, object]],
171171
"dist": str,
172172
"duration": Optional[float],
173-
"environment": str,
173+
"environment": Optional[str],
174174
"errors": list[dict[str, Any]], # TODO: We can expand on this type
175175
"event_id": str,
176176
"exception": dict[
@@ -188,7 +188,7 @@ class SDKInfo(TypedDict):
188188
"monitor_slug": Optional[str],
189189
"platform": Literal["python"],
190190
"profile": object, # Should be sentry_sdk.profiler.Profile, but we can't import that here due to circular imports
191-
"release": str,
191+
"release": Optional[str],
192192
"request": dict[str, object],
193193
"sdk": Mapping[str, object],
194194
"server_name": str,

sentry_sdk/integrations/django/asgi.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,9 +237,9 @@ async def __acall__(self, *args, **kwargs):
237237
middleware_span = _check_middleware_span(old_method=f)
238238

239239
if middleware_span is None:
240-
return await f(*args, **kwargs)
240+
return await f(*args, **kwargs) # type: ignore
241241

242242
with middleware_span:
243-
return await f(*args, **kwargs)
243+
return await f(*args, **kwargs) # type: ignore
244244

245245
return SentryASGIMixin

sentry_sdk/integrations/tornado.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ async def sentry_execute_request_handler(self, *args, **kwargs):
7676
else:
7777

7878
@coroutine # type: ignore
79-
def sentry_execute_request_handler(self, *args, **kwargs): # type: ignore
79+
def sentry_execute_request_handler(self, *args, **kwargs):
8080
# type: (RequestHandler, *Any, **Any) -> Any
8181
with _handle_request_impl(self):
8282
result = yield from old_execute(self, *args, **kwargs)

0 commit comments

Comments
 (0)