Skip to content

Commit 616f438

Browse files
committed
Rename some selector classes and tidy.
1 parent 9a1886e commit 616f438

File tree

8 files changed

+136
-131
lines changed

8 files changed

+136
-131
lines changed

jsonpath/env.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
from .exceptions import JSONPathTypeError
2525
from .filter import UNDEFINED
2626
from .filter import VALUE_TYPE_EXPRESSIONS
27-
from .filter import FilterExpression
27+
from .filter import BaseExpression
2828
from .filter import FilterQuery
2929
from .filter import FunctionExtension
3030
from .filter import InfixExpression
@@ -449,7 +449,7 @@ def check_well_typedness(
449449
self,
450450
token: Token,
451451
func: FilterFunction,
452-
args: List[FilterExpression],
452+
args: List[BaseExpression],
453453
) -> None:
454454
"""Check the well-typedness of a function's arguments at compile-time."""
455455
# Correct number of arguments?
@@ -487,7 +487,7 @@ def check_well_typedness(
487487
token=token,
488488
)
489489

490-
def _function_return_type(self, expr: FilterExpression) -> Optional[ExpressionType]:
490+
def _function_return_type(self, expr: BaseExpression) -> Optional[ExpressionType]:
491491
"""Return the type returned from a filter function.
492492
493493
If _expr_ is not a `FunctionExtension` or the registered function definition is

0 commit comments

Comments
 (0)