Skip to content

Commit a547e17

Browse files
try reverting annotated stuff
1 parent 2fa2d46 commit a547e17

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

sentry_sdk/_types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ class SDKInfo(TypedDict):
163163
"errors": list[dict[str, Any]], # TODO: We can expand on this type
164164
"event_id": str,
165165
"exception": dict[
166-
Literal["values"], list[Annotated[dict[str, Any]]]
166+
Literal["values"], list[dict[str, Any]]
167167
], # TODO: We can expand on this type
168168
"extra": MutableMapping[str, object],
169169
"fingerprint": list[str],

sentry_sdk/utils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -676,7 +676,7 @@ def single_exception_from_error_tuple(
676676
source=None, # type: Optional[str]
677677
full_stack=None, # type: Optional[list[dict[str, Any]]]
678678
):
679-
# type: (...) -> Annotated[Dict[str, Any]]
679+
# type: (...) -> Dict[str, Any]
680680
"""
681681
Creates a dict that goes into the events `exception.values` list and is ingestible by Sentry.
682682
@@ -812,7 +812,7 @@ def exceptions_from_error(
812812
source=None, # type: Optional[str]
813813
full_stack=None, # type: Optional[list[dict[str, Any]]]
814814
):
815-
# type: (...) -> Tuple[int, List[Annotated[Dict[str, Any]]]]
815+
# type: (...) -> Tuple[int, List[Dict[str, Any]]]
816816
"""
817817
Creates the list of exceptions.
818818
This can include chained exceptions and exceptions from an ExceptionGroup.
@@ -908,7 +908,7 @@ def exceptions_from_error_tuple(
908908
mechanism=None, # type: Optional[Dict[str, Any]]
909909
full_stack=None, # type: Optional[list[dict[str, Any]]]
910910
):
911-
# type: (...) -> List[Annotated[Dict[str, Any]]]
911+
# type: (...) -> List[Dict[str, Any]]
912912
exc_type, exc_value, tb = exc_info
913913

914914
is_exception_group = BaseExceptionGroup is not None and isinstance(

0 commit comments

Comments
 (0)