Skip to content

Commit 1164c0f

Browse files
authored
[jmespath] Remove from pyrightconfig (#14378)
1 parent 9ac95d4 commit 1164c0f

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

pyrightconfig.stricter.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@
5050
"stubs/httplib2",
5151
"stubs/hvac",
5252
"stubs/icalendar",
53-
"stubs/jmespath",
5453
"stubs/jsonschema",
5554
"stubs/jwcrypto",
5655
"stubs/ldap3",

stubs/jmespath/jmespath/ast.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,4 @@ def pipe(left: _ASTNode, right: _ASTNode) -> _ASTNode: ...
5252
def projection(left: _ASTNode, right: _ASTNode) -> _ASTNode: ...
5353
def subexpression(children: list[_ASTNode]) -> _ASTNode: ...
5454
def slice(start: _ASTNode, end: _ASTNode, step: _ASTNode) -> _ASTNode: ...
55-
def value_projection(left, right) -> _ASTNode: ...
55+
def value_projection(left: _ASTNode, right: _ASTNode) -> _ASTNode: ...

stubs/jmespath/jmespath/exceptions.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class ArityError(ParseError):
3030
expected_arity: int
3131
actual_arity: int
3232
function_name: str
33-
def __init__(self, expected, actual, name) -> None: ...
33+
def __init__(self, expected: int, actual: int, name: str) -> None: ...
3434

3535
class VariadictArityError(ArityError): ...
3636

stubs/jmespath/jmespath/visitor.pyi

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,14 @@ class _Expression:
1717
expression: str
1818
interpreter: Visitor
1919
def __init__(self, expression: str, interpreter: Visitor) -> None: ...
20-
def visit(self, node: _TreeNode, *args, **kwargs) -> Any: ...
20+
# `args` and `kwargs` are passed to the appropriate `visit_*` method.
21+
def visit(self, node: _TreeNode, *args: Any, **kwargs: Any) -> Any: ...
2122

2223
class Visitor:
2324
def __init__(self) -> None: ...
24-
def visit(self, node: _TreeNode, *args, **kwargs) -> Any: ...
25+
# `args` and `kwargs` are passed to the appropriate `visit_*` method.
26+
# Its return value is returned from visit.
27+
def visit(self, node: _TreeNode, *args: Any, **kwargs: Any) -> Any: ...
2528
def default_visit(self, node: _TreeNode, *args: Unused, **kwargs: Unused) -> NoReturn: ...
2629

2730
class _TreeNode(TypedDict):
@@ -59,4 +62,4 @@ class TreeInterpreter(Visitor):
5962

6063
class GraphvizVisitor(Visitor):
6164
def __init__(self) -> None: ...
62-
def visit(self, node: _TreeNode, *args, **kwargs) -> str: ...
65+
def visit(self, node: _TreeNode, *args: Unused, **kwargs: Unused) -> str: ...

0 commit comments

Comments
 (0)