Skip to content

Commit aaa04c5

Browse files
committed
py 3.8 doesn't have TypeAlias
1 parent 249fcfb commit aaa04c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

deepdiff/helper.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import string
99
import time
1010
import enum
11-
from typing import NamedTuple, Any, List, Optional, TypeAlias
11+
from typing import NamedTuple, Any, List, Optional
1212
from ast import literal_eval
1313
from decimal import Decimal, localcontext, InvalidOperation as InvalidDecimalOperation
1414
from itertools import repeat
@@ -817,7 +817,7 @@ class FlatDeltaRow(NamedTuple):
817817
__repr__ = __str__ = named_tuple_repr
818818

819819

820-
JSON: TypeAlias = dict[str, str] | list[str] | list[int] | dict[str, "JSON"] | list["JSON"] | str | int | float | bool | None
820+
JSON = dict[str, str] | list[str] | list[int] | dict[str, "JSON"] | list["JSON"] | str | int | float | bool | None
821821

822822

823823
class SummaryNodeType(EnumBase):

0 commit comments

Comments
 (0)