Skip to content

Commit 0ea80dc

Browse files
committed
Fix TypeAlias non-supported with py38 and py39
1 parent 2780df7 commit 0ea80dc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

opentelemetry-sdk/src/opentelemetry/sdk/metrics/_internal/exemplar/exemplar_reservoir.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
from abc import ABC, abstractmethod
1616
from random import randrange
17-
from typing import Any, Callable, Optional, Sequence, TypeAlias, Union
17+
from typing import Any, Callable, Optional, Sequence, Union
1818

1919
from opentelemetry import trace
2020
from opentelemetry.context import Context
@@ -313,7 +313,7 @@ def _find_bucket_index(
313313
return len(self._boundaries)
314314

315315

316-
ExemplarReservoirBuilder: TypeAlias = Callable[
316+
ExemplarReservoirBuilder = Callable[
317317
[dict[str, Any]], ExemplarReservoir
318318
]
319319
ExemplarReservoirBuilder.__doc__ = """ExemplarReservoir builder.

0 commit comments

Comments
 (0)