|
3 | 3 |
|
4 | 4 | import re |
5 | 5 | from functools import partial |
6 | | -from typing import TYPE_CHECKING, Iterator, Pattern |
| 6 | +from typing import TYPE_CHECKING |
| 7 | +from typing import Iterator |
| 8 | +from typing import Pattern |
7 | 9 |
|
8 | 10 | from .exceptions import JSONPathSyntaxError |
9 | | -from .token import ( |
10 | | - TOKEN_AND, |
11 | | - TOKEN_BARE_PROPERTY, |
12 | | - TOKEN_BRACKET_PROPERTY, |
13 | | - TOKEN_COMMA, |
14 | | - TOKEN_CONTAINS, |
15 | | - TOKEN_DDOT, |
16 | | - TOKEN_DOT_INDEX, |
17 | | - TOKEN_DOT_PROPERTY, |
18 | | - TOKEN_DOUBLE_QUOTE_STRING, |
19 | | - TOKEN_EQ, |
20 | | - TOKEN_FALSE, |
21 | | - TOKEN_FILTER_CONTEXT, |
22 | | - TOKEN_FILTER_END, |
23 | | - TOKEN_FILTER_START, |
24 | | - TOKEN_FLOAT, |
25 | | - TOKEN_GE, |
26 | | - TOKEN_GT, |
27 | | - TOKEN_ILLEGAL, |
28 | | - TOKEN_IN, |
29 | | - TOKEN_INDEX, |
30 | | - TOKEN_INT, |
31 | | - TOKEN_INTERSECTION, |
32 | | - TOKEN_LE, |
33 | | - TOKEN_LG, |
34 | | - TOKEN_LIST_END, |
35 | | - TOKEN_LIST_SLICE, |
36 | | - TOKEN_LIST_START, |
37 | | - TOKEN_LPAREN, |
38 | | - TOKEN_LT, |
39 | | - TOKEN_MISSING, |
40 | | - TOKEN_NE, |
41 | | - TOKEN_NIL, |
42 | | - TOKEN_NONE, |
43 | | - TOKEN_NOT, |
44 | | - TOKEN_NULL, |
45 | | - TOKEN_OR, |
46 | | - TOKEN_PROPERTY, |
47 | | - TOKEN_RE, |
48 | | - TOKEN_RE_FLAGS, |
49 | | - TOKEN_RE_PATTERN, |
50 | | - TOKEN_ROOT, |
51 | | - TOKEN_RPAREN, |
52 | | - TOKEN_SELF, |
53 | | - TOKEN_SINGLE_QUOTE_STRING, |
54 | | - TOKEN_SKIP, |
55 | | - TOKEN_SLICE, |
56 | | - TOKEN_SLICE_START, |
57 | | - TOKEN_SLICE_STEP, |
58 | | - TOKEN_SLICE_STOP, |
59 | | - TOKEN_STRING, |
60 | | - TOKEN_TRUE, |
61 | | - TOKEN_UNDEFINED, |
62 | | - TOKEN_UNION, |
63 | | - TOKEN_WILD, |
64 | | - Token, |
65 | | -) |
| 11 | +from .token import TOKEN_AND |
| 12 | +from .token import TOKEN_BARE_PROPERTY |
| 13 | +from .token import TOKEN_BRACKET_PROPERTY |
| 14 | +from .token import TOKEN_COMMA |
| 15 | +from .token import TOKEN_CONTAINS |
| 16 | +from .token import TOKEN_DDOT |
| 17 | +from .token import TOKEN_DOT_INDEX |
| 18 | +from .token import TOKEN_DOT_PROPERTY |
| 19 | +from .token import TOKEN_DOUBLE_QUOTE_STRING |
| 20 | +from .token import TOKEN_EQ |
| 21 | +from .token import TOKEN_FALSE |
| 22 | +from .token import TOKEN_FILTER_CONTEXT |
| 23 | +from .token import TOKEN_FILTER_END |
| 24 | +from .token import TOKEN_FILTER_START |
| 25 | +from .token import TOKEN_FLOAT |
| 26 | +from .token import TOKEN_GE |
| 27 | +from .token import TOKEN_GT |
| 28 | +from .token import TOKEN_ILLEGAL |
| 29 | +from .token import TOKEN_IN |
| 30 | +from .token import TOKEN_INDEX |
| 31 | +from .token import TOKEN_INT |
| 32 | +from .token import TOKEN_INTERSECTION |
| 33 | +from .token import TOKEN_LE |
| 34 | +from .token import TOKEN_LG |
| 35 | +from .token import TOKEN_LIST_END |
| 36 | +from .token import TOKEN_LIST_SLICE |
| 37 | +from .token import TOKEN_LIST_START |
| 38 | +from .token import TOKEN_LPAREN |
| 39 | +from .token import TOKEN_LT |
| 40 | +from .token import TOKEN_MISSING |
| 41 | +from .token import TOKEN_NE |
| 42 | +from .token import TOKEN_NIL |
| 43 | +from .token import TOKEN_NONE |
| 44 | +from .token import TOKEN_NOT |
| 45 | +from .token import TOKEN_NULL |
| 46 | +from .token import TOKEN_OR |
| 47 | +from .token import TOKEN_PROPERTY |
| 48 | +from .token import TOKEN_RE |
| 49 | +from .token import TOKEN_RE_FLAGS |
| 50 | +from .token import TOKEN_RE_PATTERN |
| 51 | +from .token import TOKEN_ROOT |
| 52 | +from .token import TOKEN_RPAREN |
| 53 | +from .token import TOKEN_SELF |
| 54 | +from .token import TOKEN_SINGLE_QUOTE_STRING |
| 55 | +from .token import TOKEN_SKIP |
| 56 | +from .token import TOKEN_SLICE |
| 57 | +from .token import TOKEN_SLICE_START |
| 58 | +from .token import TOKEN_SLICE_STEP |
| 59 | +from .token import TOKEN_SLICE_STOP |
| 60 | +from .token import TOKEN_STRING |
| 61 | +from .token import TOKEN_TRUE |
| 62 | +from .token import TOKEN_UNDEFINED |
| 63 | +from .token import TOKEN_UNION |
| 64 | +from .token import TOKEN_WILD |
| 65 | +from .token import Token |
66 | 66 |
|
67 | 67 | if TYPE_CHECKING: |
68 | 68 | from . import JSONPathEnvironment |
|
0 commit comments