Skip to content

Commit 176a660

Browse files
committed
typing
1 parent 8a6cc39 commit 176a660

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

sentry_sdk/integrations/django/tasks.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@
1010
except ImportError:
1111
Task = None
1212

13+
from typing import TYPE_CHECKING
14+
15+
if TYPE_CHECKING:
16+
from typing import Any
17+
1318

1419
def patch_tasks():
1520
# type: () -> None
@@ -20,7 +25,7 @@ def patch_tasks():
2025

2126
@wraps(old_task_enqueue)
2227
def _sentry_enqueue(self, *args, **kwargs):
23-
# type: (Any, Any) -> Any
28+
# type: (Any, Any, Any) -> Any
2429
from sentry_sdk.integrations.django import DjangoIntegration
2530

2631
integration = sentry_sdk.get_client().get_integration(DjangoIntegration)

0 commit comments

Comments
 (0)