From c42e3e65cc57bbd8e07f273984ed5fc89787d7c0 Mon Sep 17 00:00:00 2001 From: Attila Sasvari Date: Tue, 23 Jul 2024 20:48:09 +0100 Subject: [PATCH] Update opentelemetry-sdk/src/opentelemetry/sdk/resources/__init__.py Co-authored-by: Riccardo Magliocchetti --- opentelemetry-sdk/src/opentelemetry/sdk/resources/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opentelemetry-sdk/src/opentelemetry/sdk/resources/__init__.py b/opentelemetry-sdk/src/opentelemetry/sdk/resources/__init__.py index 8b093f063e5..4d16fc70299 100644 --- a/opentelemetry-sdk/src/opentelemetry/sdk/resources/__init__.py +++ b/opentelemetry-sdk/src/opentelemetry/sdk/resources/__init__.py @@ -282,7 +282,7 @@ def __hash__(self) -> int: ) def to_json(self, indent: int = 4) -> str: - attributes = dict(self._attributes) # type: ignore + attributes: MutableMapping[str, types.AttributeValue] = dict(self._attributes) return dumps( { "attributes": attributes, # type: ignore