Skip to content

Commit 9eed1cc

Browse files
committed
fix(spans): fixing typing issue
1 parent d557bcd commit 9eed1cc

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

sentry_sdk/_types.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from typing import TYPE_CHECKING
1+
from typing import TYPE_CHECKING, TypeVar, Union
22

33

44
# Re-exported for compat, since code out there in the wild might use this variable.
@@ -78,6 +78,9 @@ def substituted_because_contains_sensitive_data(cls):
7878
},
7979
)
8080

81+
T = TypeVar("T")
82+
Annotated = Union[AnnotatedValue, T]
83+
8184

8285
if TYPE_CHECKING:
8386
from collections.abc import Container, MutableMapping, Sequence
@@ -93,12 +96,8 @@ def substituted_because_contains_sensitive_data(cls):
9396
from typing import Optional
9497
from typing import Tuple
9598
from typing import Type
96-
from typing import TypeVar
97-
from typing import Union
9899
from typing_extensions import Literal, TypedDict
99100

100-
T = TypeVar("T")
101-
Annotated = Union[AnnotatedValue, T]
102101

103102
class SDKInfo(TypedDict):
104103
name: str

0 commit comments

Comments
 (0)