mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-15 16:27:08 +08:00
Add defaults for third-party stubs Q-T (#9959)
This commit is contained in:
@@ -10,12 +10,12 @@ class NodeVisitor:
|
||||
class NodeTransformer(NodeVisitor):
|
||||
def generic_visit(self, node: AST) -> None: ...
|
||||
|
||||
def parse(source: str | ReadableBuffer, filename: str | ReadableBuffer = ..., mode: str = ...) -> AST: ...
|
||||
def parse(source: str | ReadableBuffer, filename: str | ReadableBuffer = "<unknown>", mode: str = "exec") -> AST: ...
|
||||
def copy_location(new_node: AST, old_node: AST) -> AST: ...
|
||||
def dump(node: AST, annotate_fields: bool = ..., include_attributes: bool = ...) -> str: ...
|
||||
def dump(node: AST, annotate_fields: bool = True, include_attributes: bool = False) -> str: ...
|
||||
def fix_missing_locations(node: AST) -> AST: ...
|
||||
def get_docstring(node: AST, clean: bool = ...) -> str | bytes | None: ...
|
||||
def increment_lineno(node: AST, n: int = ...) -> AST: ...
|
||||
def get_docstring(node: AST, clean: bool = True) -> str | bytes | None: ...
|
||||
def increment_lineno(node: AST, n: int = 1) -> AST: ...
|
||||
def iter_child_nodes(node: AST) -> Iterator[AST]: ...
|
||||
def iter_fields(node: AST) -> Iterator[tuple[str, Any]]: ...
|
||||
def literal_eval(node_or_string: str | AST) -> Any: ...
|
||||
|
||||
@@ -13,13 +13,13 @@ class NodeTransformer(NodeVisitor):
|
||||
def generic_visit(self, node: AST) -> None: ...
|
||||
|
||||
def parse(
|
||||
source: str | ReadableBuffer, filename: str | ReadableBuffer = ..., mode: str = ..., feature_version: int = ...
|
||||
source: str | ReadableBuffer, filename: str | ReadableBuffer = "<unknown>", mode: str = "exec", feature_version: int = 7
|
||||
) -> AST: ...
|
||||
def copy_location(new_node: AST, old_node: AST) -> AST: ...
|
||||
def dump(node: AST, annotate_fields: bool = ..., include_attributes: bool = ...) -> str: ...
|
||||
def dump(node: AST, annotate_fields: bool = True, include_attributes: bool = False) -> str: ...
|
||||
def fix_missing_locations(node: AST) -> AST: ...
|
||||
def get_docstring(node: AST, clean: bool = ...) -> str | None: ...
|
||||
def increment_lineno(node: AST, n: int = ...) -> AST: ...
|
||||
def get_docstring(node: AST, clean: bool = True) -> str | None: ...
|
||||
def increment_lineno(node: AST, n: int = 1) -> AST: ...
|
||||
def iter_child_nodes(node: AST) -> Iterator[AST]: ...
|
||||
def iter_fields(node: AST) -> Iterator[tuple[str, Any]]: ...
|
||||
def literal_eval(node_or_string: str | AST) -> Any: ...
|
||||
|
||||
Reference in New Issue
Block a user