Skip to content

Commit 6148f07

Browse files
authored
Made MeasurementValue.unit NotRequired (getsentry#3051)
1 parent b24c1e4 commit 6148f07

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sentry_sdk/_types.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
from typing import Dict
2020
from typing import List
2121
from typing import Mapping
22+
from typing import NotRequired
2223
from typing import Optional
2324
from typing import Tuple
2425
from typing import Type
@@ -63,7 +64,7 @@
6364
"MeasurementValue",
6465
{
6566
"value": float,
66-
"unit": Optional[MeasurementUnit],
67+
"unit": NotRequired[Optional[MeasurementUnit]],
6768
},
6869
)
6970

0 commit comments

Comments
 (0)