Skip to content

Commit 6500f42

Browse files
ci(django): Widen type annotation and remove unused type ignore
1 parent 7bf0eca commit 6500f42

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

sentry_sdk/integrations/django/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,9 @@ class DjangoIntegration(Integration):
120120
origin_db = f"auto.db.{identifier}"
121121

122122
transaction_style = ""
123-
middleware_spans = None
124-
signals_spans = None
125-
cache_spans = None
123+
middleware_spans: "Optional[bool]" = None
124+
signals_spans: "Optional[bool]" = None
125+
cache_spans: "Optional[bool]" = None
126126
signals_denylist: "list[signals.Signal]" = []
127127

128128
def __init__(

sentry_sdk/integrations/django/asgi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
iscoroutinefunction = inspect.iscoroutinefunction
4545
markcoroutinefunction = inspect.markcoroutinefunction
4646
else:
47-
iscoroutinefunction = asyncio.iscoroutinefunction # type: ignore[assignment]
47+
iscoroutinefunction = asyncio.iscoroutinefunction
4848

4949
def markcoroutinefunction(func: "_F") -> "_F":
5050
func._is_coroutine = asyncio.coroutines._is_coroutine # type: ignore

0 commit comments

Comments
 (0)