mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 12:44:28 +08:00
Fix strings that were really bytes in typed_ast (#624)
This commit is contained in:
4
third_party/3/typed_ast/ast27.pyi
vendored
4
third_party/3/typed_ast/ast27.pyi
vendored
@@ -14,7 +14,7 @@ def parse(source: Union[str, bytes], filename: Union[str, bytes] = ..., mode: st
|
||||
def copy_location(new_node: AST, old_node: AST) -> AST: ...
|
||||
def dump(node: AST, annotate_fields: bool = ..., include_attributes: bool = ...) -> str: ...
|
||||
def fix_missing_locations(node: AST) -> AST: ...
|
||||
def get_docstring(node: AST, clean: bool = ...) -> str: ...
|
||||
def get_docstring(node: AST, clean: bool = ...) -> Optional[bytes]: ...
|
||||
def increment_lineno(node: AST, n: int = ...) -> AST: ...
|
||||
def iter_child_nodes(node: AST) -> Iterator[AST]: ...
|
||||
def iter_fields(node: AST) -> Iterator[typing.Tuple[str, Any]]: ...
|
||||
@@ -247,7 +247,7 @@ class Num(expr):
|
||||
n = ... # type: Union[int, float]
|
||||
|
||||
class Str(expr):
|
||||
s = ... # type: str
|
||||
s = ... # type: bytes
|
||||
|
||||
class Attribute(expr):
|
||||
value = ... # type: expr
|
||||
|
||||
Reference in New Issue
Block a user