From b4db72d0304be98cf6e0d38b5c41bdc6f258cf44 Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Thu, 21 Mar 2024 10:21:00 +0100 Subject: [PATCH 1/2] Explicitly reexport types to make strict mypy setups happy --- sentry_sdk/types.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sentry_sdk/types.py b/sentry_sdk/types.py index 5c46de7f88..2b7e83e73c 100644 --- a/sentry_sdk/types.py +++ b/sentry_sdk/types.py @@ -12,3 +12,8 @@ if TYPE_CHECKING: from sentry_sdk._types import Event, Hint # noqa: F401 + + __all__ = [ + "Event", + "Hint" + ] From d6dd214f37344a97605710fa16f891be7145fcd4 Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Thu, 21 Mar 2024 10:26:37 +0100 Subject: [PATCH 2/2] linting --- sentry_sdk/types.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/sentry_sdk/types.py b/sentry_sdk/types.py index 2b7e83e73c..f7397adee1 100644 --- a/sentry_sdk/types.py +++ b/sentry_sdk/types.py @@ -13,7 +13,4 @@ if TYPE_CHECKING: from sentry_sdk._types import Event, Hint # noqa: F401 - __all__ = [ - "Event", - "Hint" - ] + __all__ = ["Event", "Hint"]