Skip to content

Commit a1af7e2

Browse files
authored
Merge pull request jg-rp#23 from jg-rp/relative-imports
chore: no relative imports
2 parents fc239b9 + 6907929 commit a1af7e2

8 files changed

Lines changed: 25 additions & 24 deletions

File tree

‎jsonpath/function_extensions/arguments.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
from typing import List
77

88
if TYPE_CHECKING:
9-
from ..env import JSONPathEnvironment
10-
from ..token import Token
9+
from jsonpath.env import JSONPathEnvironment
10+
from jsonpath.token import Token
1111

12-
from ..exceptions import JSONPathTypeError
12+
from jsonpath.exceptions import JSONPathTypeError
1313

1414

1515
def validate(

‎jsonpath/function_extensions/count.py‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44
from typing import TYPE_CHECKING
55
from typing import List
66

7-
from ..exceptions import JSONPathTypeError
8-
from ..filter import Literal
9-
from ..filter import Nil
7+
from jsonpath.exceptions import JSONPathTypeError
8+
from jsonpath.filter import Literal
9+
from jsonpath.filter import Nil
1010

1111
if TYPE_CHECKING:
12-
from ..env import JSONPathEnvironment
13-
from ..match import NodeList
14-
from ..token import Token
12+
from jsonpath.env import JSONPathEnvironment
13+
from jsonpath.match import NodeList
14+
from jsonpath.token import Token
1515

1616

1717
class Count:

‎jsonpath/function_extensions/is_instance.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
from typing import Mapping
44
from typing import Sequence
55

6-
from ..filter import UNDEFINED
7-
from ..filter import UNDEFINED_LITERAL
6+
from jsonpath.filter import UNDEFINED
7+
from jsonpath.filter import UNDEFINED_LITERAL
88

99

1010
class IsInstance:

‎jsonpath/function_extensions/match.py‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
from typing import Pattern
77
from typing import Union
88

9-
from ..exceptions import JSONPathTypeError
10-
from ..filter import RegexArgument
11-
from ..filter import StringLiteral
9+
from jsonpath.exceptions import JSONPathTypeError
10+
from jsonpath.filter import RegexArgument
11+
from jsonpath.filter import StringLiteral
1212

1313
if TYPE_CHECKING:
14-
from ..env import JSONPathEnvironment
15-
from ..token import Token
14+
from jsonpath.env import JSONPathEnvironment
15+
from jsonpath.token import Token
1616

1717

1818
class Match:

‎jsonpath/function_extensions/search.py‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
from typing import Pattern
77
from typing import Union
88

9-
from ..exceptions import JSONPathTypeError
10-
from ..filter import RegexArgument
11-
from ..filter import StringLiteral
9+
from jsonpath.exceptions import JSONPathTypeError
10+
from jsonpath.filter import RegexArgument
11+
from jsonpath.filter import StringLiteral
1212

1313
if TYPE_CHECKING:
14-
from ..env import JSONPathEnvironment
15-
from ..token import Token
14+
from jsonpath.env import JSONPathEnvironment
15+
from jsonpath.token import Token
1616

1717

1818
class Search:

‎jsonpath/function_extensions/typeof.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
from typing import Mapping
44
from typing import Sequence
55

6-
from ..filter import UNDEFINED
7-
from ..filter import UNDEFINED_LITERAL
6+
from jsonpath.filter import UNDEFINED
7+
from jsonpath.filter import UNDEFINED_LITERAL
88

99

1010
class TypeOf:

‎jsonpath/function_extensions/value.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""The standard `value` function extension."""
22
from typing import Sequence
33

4-
from ..filter import UNDEFINED
4+
from jsonpath.filter import UNDEFINED
55

66

77
def value(obj: object) -> object:

‎pyproject.toml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ select = [
127127
"T10",
128128
"T20",
129129
"TCH",
130+
"TID",
130131
"YTT",
131132
]
132133
ignore = ["S105", "S101", "D107", "D105", "PLR0913"]

0 commit comments

Comments
 (0)