Skip to content

Commit

Permalink
Fix TypeAlias non-supported with py38 and py39
Browse files Browse the repository at this point in the history
  • Loading branch information
fcollonval committed Sep 3, 2024
1 parent 2780df7 commit 0ea80dc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

from abc import ABC, abstractmethod
from random import randrange
from typing import Any, Callable, Optional, Sequence, TypeAlias, Union
from typing import Any, Callable, Optional, Sequence, Union

from opentelemetry import trace
from opentelemetry.context import Context
Expand Down Expand Up @@ -313,7 +313,7 @@ def _find_bucket_index(
return len(self._boundaries)


ExemplarReservoirBuilder: TypeAlias = Callable[
ExemplarReservoirBuilder = Callable[
[dict[str, Any]], ExemplarReservoir
]
ExemplarReservoirBuilder.__doc__ = """ExemplarReservoir builder.
Expand Down

0 comments on commit 0ea80dc

Please sign in to comment.