Skip to content

Commit b3e146b

Browse files
committed
chore(drf): type exception capture metadata
1 parent 8b8e750 commit b3e146b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎posthog/integrations/drf.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,14 @@
2828

2929
from ..client import Client
3030
from ..exception_utils import (
31+
_ExceptionCaptureMetadata,
3132
_capture_exception_with_metadata,
3233
exception_is_already_captured as _exception_is_already_captured,
3334
)
3435

3536
_logger = logging.getLogger("posthog")
3637

37-
_CAPTURE_METADATA = {
38+
_CAPTURE_METADATA: _ExceptionCaptureMetadata = {
3839
"level": "error",
3940
"source": "django_rest_framework.exception_handler",
4041
"mechanism": {"type": "middleware", "handled": True},

0 commit comments

Comments
 (0)