Skip to content

Commit d0a8ff9

Browse files
author
Elias Ram
committed
ref(metrics): Update type hints for tag values
Remove None, Tuple, and List from the MetricTagValue type as these are not supported and might confuse the user
1 parent 6a9d152 commit d0a8ff9

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

sentry_sdk/_types.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -173,14 +173,7 @@
173173
MetricTagsInternal = Tuple[Tuple[str, str], ...]
174174

175175
# External representation of tags as a dictionary.
176-
MetricTagValue = Union[
177-
str,
178-
int,
179-
float,
180-
None,
181-
List[Union[int, str, float, None]],
182-
Tuple[Union[int, str, float, None], ...],
183-
]
176+
MetricTagValue = Union[str, int, float]
184177
MetricTags = Mapping[str, MetricTagValue]
185178

186179
# Value inside the generator for the metric value.

0 commit comments

Comments
 (0)