From 097afdeb9e5167d2f58e8292e92e9ecc36f20b44 Mon Sep 17 00:00:00 2001 From: Ivana Kellyer Date: Tue, 15 Oct 2024 10:18:35 +0200 Subject: [PATCH 1/3] mypy for httpcore --- requirements-linting.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/requirements-linting.txt b/requirements-linting.txt index 3b88581e24..d2a65b31db 100644 --- a/requirements-linting.txt +++ b/requirements-linting.txt @@ -14,3 +14,4 @@ loguru # There is no separate types module. flake8-bugbear pep8-naming pre-commit # local linting +httpcore From 00a1df60c46730537aefc206046b6ab2f5b38218 Mon Sep 17 00:00:00 2001 From: Ivana Kellyer Date: Tue, 15 Oct 2024 10:22:03 +0200 Subject: [PATCH 2/3] fix type --- sentry_sdk/integrations/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sentry_sdk/integrations/__init__.py b/sentry_sdk/integrations/__init__.py index 6c24ca1625..7c902e8710 100644 --- a/sentry_sdk/integrations/__init__.py +++ b/sentry_sdk/integrations/__init__.py @@ -14,6 +14,7 @@ from typing import Optional from typing import Set from typing import Type + from typing import Union _DEFAULT_FAILED_REQUEST_STATUS_CODES = frozenset(range(500, 600)) @@ -124,7 +125,7 @@ def setup_integrations( with_auto_enabling_integrations=False, disabled_integrations=None, ): - # type: (Sequence[Integration], bool, bool, Optional[Sequence[Integration]]) -> Dict[str, Integration] + # type: (Sequence[Integration], bool, bool, Optional[Sequence[Union[type, Integration]]]) -> Dict[str, Integration] """ Given a list of integration instances, this installs them all. From de92df9f65780ea7130e6f5725a107629bfb15ce Mon Sep 17 00:00:00 2001 From: Ivana Kellyer Date: Tue, 15 Oct 2024 12:39:35 +0200 Subject: [PATCH 3/3] Update sentry_sdk/integrations/__init__.py Co-authored-by: Daniel Szoke <7881302+szokeasaurusrex@users.noreply.github.com> --- sentry_sdk/integrations/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sentry_sdk/integrations/__init__.py b/sentry_sdk/integrations/__init__.py index 7c902e8710..32528246af 100644 --- a/sentry_sdk/integrations/__init__.py +++ b/sentry_sdk/integrations/__init__.py @@ -125,7 +125,7 @@ def setup_integrations( with_auto_enabling_integrations=False, disabled_integrations=None, ): - # type: (Sequence[Integration], bool, bool, Optional[Sequence[Union[type, Integration]]]) -> Dict[str, Integration] + # type: (Sequence[Integration], bool, bool, Optional[Sequence[Union[type[Integration], Integration]]]) -> Dict[str, Integration] """ Given a list of integration instances, this installs them all.