From 49b22c6f14fb00da3faf756d25ab7762461ceb1c Mon Sep 17 00:00:00 2001 From: Rajat Ahuja Date: Wed, 15 Oct 2025 11:31:12 -0400 Subject: [PATCH] fix: add integration type --- src/sentry.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/sentry.py b/src/sentry.py index 1980f0e8..7ad467f1 100644 --- a/src/sentry.py +++ b/src/sentry.py @@ -3,7 +3,7 @@ from __future__ import annotations from collections.abc import Sequence -from typing import TYPE_CHECKING, Any +from typing import TYPE_CHECKING import sentry_sdk from pydantic import ValidationError @@ -13,9 +13,7 @@ from src.exceptions import HonchoException if TYPE_CHECKING: from sentry_sdk._types import Event, Hint - - -_UNSET = object() + from sentry_sdk.integrations import Integration def _filter_sentry_event(event: Event, hint: Hint | None) -> Event | None: @@ -44,7 +42,7 @@ def _filter_sentry_event(event: Event, hint: Hint | None) -> Event | None: # sentry_sdk.init(..., integrations=[LoggingIntegration(level=logging.INFO, event_level=logging.ERROR)]) def initialize_sentry( *, - integrations: Sequence[Any], + integrations: Sequence[Integration], ) -> None: sentry_sdk.init( dsn=settings.SENTRY.DSN,