Fix strings that were really bytes in typed_ast (#624)

This commit is contained in:
David Fisher
2016-10-19 16:34:41 -07:00
committed by GitHub
parent 3253d3cc46
commit ca318e444f

View File

@@ -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