mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-06-24 09:48:39 +08:00
[jmespath] Remove from pyrightconfig (#14378)
This commit is contained in:
@@ -50,7 +50,6 @@
|
||||
"stubs/httplib2",
|
||||
"stubs/hvac",
|
||||
"stubs/icalendar",
|
||||
"stubs/jmespath",
|
||||
"stubs/jsonschema",
|
||||
"stubs/jwcrypto",
|
||||
"stubs/ldap3",
|
||||
|
||||
@@ -52,4 +52,4 @@ def pipe(left: _ASTNode, right: _ASTNode) -> _ASTNode: ...
|
||||
def projection(left: _ASTNode, right: _ASTNode) -> _ASTNode: ...
|
||||
def subexpression(children: list[_ASTNode]) -> _ASTNode: ...
|
||||
def slice(start: _ASTNode, end: _ASTNode, step: _ASTNode) -> _ASTNode: ...
|
||||
def value_projection(left, right) -> _ASTNode: ...
|
||||
def value_projection(left: _ASTNode, right: _ASTNode) -> _ASTNode: ...
|
||||
|
||||
@@ -30,7 +30,7 @@ class ArityError(ParseError):
|
||||
expected_arity: int
|
||||
actual_arity: int
|
||||
function_name: str
|
||||
def __init__(self, expected, actual, name) -> None: ...
|
||||
def __init__(self, expected: int, actual: int, name: str) -> None: ...
|
||||
|
||||
class VariadictArityError(ArityError): ...
|
||||
|
||||
|
||||
@@ -17,11 +17,14 @@ class _Expression:
|
||||
expression: str
|
||||
interpreter: Visitor
|
||||
def __init__(self, expression: str, interpreter: Visitor) -> None: ...
|
||||
def visit(self, node: _TreeNode, *args, **kwargs) -> Any: ...
|
||||
# `args` and `kwargs` are passed to the appropriate `visit_*` method.
|
||||
def visit(self, node: _TreeNode, *args: Any, **kwargs: Any) -> Any: ...
|
||||
|
||||
class Visitor:
|
||||
def __init__(self) -> None: ...
|
||||
def visit(self, node: _TreeNode, *args, **kwargs) -> Any: ...
|
||||
# `args` and `kwargs` are passed to the appropriate `visit_*` method.
|
||||
# Its return value is returned from visit.
|
||||
def visit(self, node: _TreeNode, *args: Any, **kwargs: Any) -> Any: ...
|
||||
def default_visit(self, node: _TreeNode, *args: Unused, **kwargs: Unused) -> NoReturn: ...
|
||||
|
||||
class _TreeNode(TypedDict):
|
||||
@@ -59,4 +62,4 @@ class TreeInterpreter(Visitor):
|
||||
|
||||
class GraphvizVisitor(Visitor):
|
||||
def __init__(self) -> None: ...
|
||||
def visit(self, node: _TreeNode, *args, **kwargs) -> str: ...
|
||||
def visit(self, node: _TreeNode, *args: Unused, **kwargs: Unused) -> str: ...
|
||||
|
||||
Reference in New Issue
Block a user