Skip to content

Commit c1b6bd6

Browse files
committed
Remove TypeAlias. It was added in Python 3.10
1 parent 8f27384 commit c1b6bd6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

jsonpath_rfc9535/lex.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
from typing import Optional
99
from typing import Pattern
1010
from typing import Tuple
11-
from typing import TypeAlias
1211

1312
from .exceptions import JSONPathLexerError
1413
from .exceptions import JSONPathSyntaxError
@@ -27,7 +26,7 @@
2726
ESCAPES = frozenset(["b", "f", "n", "r", "t", "u", "/", "\\"])
2827

2928

30-
StateFn: TypeAlias = Callable[[], Optional["StateFn"]]
29+
StateFn = Callable[[], Optional["StateFn"]]
3130

3231

3332
class Lexer:

0 commit comments

Comments
 (0)