Skip to content

Commit 287736f

Browse files
committed
Fix type alias in Python 3.8
See https://bugs.python.org/issue45117
1 parent ae0aaf5 commit 287736f

File tree

1 file changed

+2
-4
lines changed
  • aws_lambda_powertools/utilities/feature_flags

1 file changed

+2
-4
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
from __future__ import annotations
2-
3-
from typing import Any, TypeVar
1+
from typing import Any, Dict, List, TypeVar, Union
42

53
from typing_extensions import ParamSpec
64

75
# JSON primitives only, mypy doesn't support recursive tho
8-
JSONType = str | int | float | bool | None | dict[str, Any] | list[Any]
6+
JSONType = Union[str, int, float, bool, None, Dict[str, Any], List[Any]]
97
T = TypeVar("T")
108
P = ParamSpec("P")

0 commit comments

Comments
 (0)