From 664b20ec1004f9fd762b301fd995a4b5c057d3d3 Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Tue, 7 May 2024 11:46:03 +0200 Subject: [PATCH] Made MeasurementValue.unit NotRequired --- sentry_sdk/_types.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sentry_sdk/_types.py b/sentry_sdk/_types.py index fd0747eef3..9f7546e81b 100644 --- a/sentry_sdk/_types.py +++ b/sentry_sdk/_types.py @@ -19,6 +19,7 @@ from typing import Dict from typing import List from typing import Mapping + from typing import NotRequired from typing import Optional from typing import Tuple from typing import Type @@ -63,7 +64,7 @@ "MeasurementValue", { "value": float, - "unit": Optional[MeasurementUnit], + "unit": NotRequired[Optional[MeasurementUnit]], }, )