Skip to content

Commit 00a1df6

Browse files
committed
fix type
1 parent 097afde commit 00a1df6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sentry_sdk/integrations/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
from typing import Optional
1515
from typing import Set
1616
from typing import Type
17+
from typing import Union
1718

1819

1920
_DEFAULT_FAILED_REQUEST_STATUS_CODES = frozenset(range(500, 600))
@@ -124,7 +125,7 @@ def setup_integrations(
124125
with_auto_enabling_integrations=False,
125126
disabled_integrations=None,
126127
):
127-
# type: (Sequence[Integration], bool, bool, Optional[Sequence[Integration]]) -> Dict[str, Integration]
128+
# type: (Sequence[Integration], bool, bool, Optional[Sequence[Union[type, Integration]]]) -> Dict[str, Integration]
128129
"""
129130
Given a list of integration instances, this installs them all.
130131

0 commit comments

Comments
 (0)