From 82cdc06478702719a3fb371e7f0f59f01f646e51 Mon Sep 17 00:00:00 2001 From: Aaron Abbott Date: Fri, 14 Aug 2020 16:06:37 +0000 Subject: [PATCH] in types.Attributes, change Dict -> Mapping --- opentelemetry-api/src/opentelemetry/util/types.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/opentelemetry-api/src/opentelemetry/util/types.py b/opentelemetry-api/src/opentelemetry/util/types.py index 6830a0dcd19..4221c7f1b9c 100644 --- a/opentelemetry-api/src/opentelemetry/util/types.py +++ b/opentelemetry-api/src/opentelemetry/util/types.py @@ -13,7 +13,7 @@ # limitations under the License. -from typing import Callable, Dict, Optional, Sequence, Union +from typing import Callable, Mapping, Optional, Sequence, Union AttributeValue = Union[ str, @@ -25,5 +25,5 @@ Sequence[int], Sequence[float], ] -Attributes = Optional[Dict[str, AttributeValue]] -AttributesFormatter = Callable[[], Optional[Dict[str, AttributeValue]]] +Attributes = Optional[Mapping[str, AttributeValue]] +AttributesFormatter = Callable[[], Attributes]