Skip to content

Commit

Permalink
use Tuple for tzpe hinting
Browse files Browse the repository at this point in the history
  • Loading branch information
asasvari committed Jul 25, 2024
1 parent d8575f1 commit 779a707
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions opentelemetry-api/src/opentelemetry/attributes/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import threading
from collections import OrderedDict
from collections.abc import MutableMapping
from typing import Optional, Sequence, Union
from typing import Optional, Sequence, Tuple, Union

from opentelemetry.util import types

Expand All @@ -30,7 +30,7 @@

def _clean_attribute(
key: str, value: types.AttributeValue, max_len: Optional[int]
) -> Optional[Union[types.AttributeValue, tuple[Union[str, int, float], ...]]]:
) -> Optional[Union[types.AttributeValue, Tuple[Union[str, int, float], ...]]]:
"""Checks if attribute value is valid and cleans it if required.
The function returns the cleaned value or None if the value is not valid.
Expand Down

0 comments on commit 779a707

Please sign in to comment.