diff --git a/sentry_sdk/spotlight.py b/sentry_sdk/spotlight.py index a3060fd589..7f180931a2 100644 --- a/sentry_sdk/spotlight.py +++ b/sentry_sdk/spotlight.py @@ -16,6 +16,7 @@ from typing import Callable from typing import Dict from typing import Optional + from typing import Self from sentry_sdk.utils import ( logger as sentry_logger, @@ -64,8 +65,6 @@ def capture_envelope(self, envelope): try: - from typing import Self, Optional - from django.utils.deprecation import MiddlewareMixin from django.http import HttpResponseServerError, HttpResponse, HttpRequest from django.conf import settings