Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: no relative imports #23

Merged
merged 1 commit into from
Jul 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions jsonpath/function_extensions/arguments.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
from typing import List

if TYPE_CHECKING:
from ..env import JSONPathEnvironment
from ..token import Token
from jsonpath.env import JSONPathEnvironment
from jsonpath.token import Token

from ..exceptions import JSONPathTypeError
from jsonpath.exceptions import JSONPathTypeError


def validate(
Expand Down
12 changes: 6 additions & 6 deletions jsonpath/function_extensions/count.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
from typing import TYPE_CHECKING
from typing import List

from ..exceptions import JSONPathTypeError
from ..filter import Literal
from ..filter import Nil
from jsonpath.exceptions import JSONPathTypeError
from jsonpath.filter import Literal
from jsonpath.filter import Nil

if TYPE_CHECKING:
from ..env import JSONPathEnvironment
from ..match import NodeList
from ..token import Token
from jsonpath.env import JSONPathEnvironment
from jsonpath.match import NodeList
from jsonpath.token import Token


class Count:
Expand Down
4 changes: 2 additions & 2 deletions jsonpath/function_extensions/is_instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
from typing import Mapping
from typing import Sequence

from ..filter import UNDEFINED
from ..filter import UNDEFINED_LITERAL
from jsonpath.filter import UNDEFINED
from jsonpath.filter import UNDEFINED_LITERAL


class IsInstance:
Expand Down
10 changes: 5 additions & 5 deletions jsonpath/function_extensions/match.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
from typing import Pattern
from typing import Union

from ..exceptions import JSONPathTypeError
from ..filter import RegexArgument
from ..filter import StringLiteral
from jsonpath.exceptions import JSONPathTypeError
from jsonpath.filter import RegexArgument
from jsonpath.filter import StringLiteral

if TYPE_CHECKING:
from ..env import JSONPathEnvironment
from ..token import Token
from jsonpath.env import JSONPathEnvironment
from jsonpath.token import Token


class Match:
Expand Down
10 changes: 5 additions & 5 deletions jsonpath/function_extensions/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
from typing import Pattern
from typing import Union

from ..exceptions import JSONPathTypeError
from ..filter import RegexArgument
from ..filter import StringLiteral
from jsonpath.exceptions import JSONPathTypeError
from jsonpath.filter import RegexArgument
from jsonpath.filter import StringLiteral

if TYPE_CHECKING:
from ..env import JSONPathEnvironment
from ..token import Token
from jsonpath.env import JSONPathEnvironment
from jsonpath.token import Token


class Search:
Expand Down
4 changes: 2 additions & 2 deletions jsonpath/function_extensions/typeof.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
from typing import Mapping
from typing import Sequence

from ..filter import UNDEFINED
from ..filter import UNDEFINED_LITERAL
from jsonpath.filter import UNDEFINED
from jsonpath.filter import UNDEFINED_LITERAL


class TypeOf:
Expand Down
2 changes: 1 addition & 1 deletion jsonpath/function_extensions/value.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""The standard `value` function extension."""
from typing import Sequence

from ..filter import UNDEFINED
from jsonpath.filter import UNDEFINED


def value(obj: object) -> object:
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ select = [
"T10",
"T20",
"TCH",
"TID",
"YTT",
]
ignore = ["S105", "S101", "D107", "D105", "PLR0913"]
Expand Down