We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fdf07bc commit d635817Copy full SHA for d635817
tests/test_logs.py
@@ -2,7 +2,7 @@
2
import logging
3
import sys
4
import time
5
-from typing import List, Any
+from typing import List, Any, Mapping, Union
6
import pytest
7
8
import sentry_sdk
@@ -17,8 +17,10 @@
17
)
18
19
20
-def otel_attributes_to_dict(otel_attrs: List[Any]):
21
- def _convert_attr(attr: dict[str, str | int | bool]):
+def otel_attributes_to_dict(otel_attrs):
+ # type: (List[Mapping[str, Any]]) -> Mapping[str, Any]
22
+ def _convert_attr(attr):
23
+ # type: (Mapping[str, Union[str, float, bool]]) -> Any
24
if "boolValue" in attr:
25
return bool(attr["boolValue"])
26
if "doubleValue" in attr:
0 commit comments