From ca318e444faab076366e2b7cc38694d611ce2fd5 Mon Sep 17 00:00:00 2001 From: David Fisher Date: Wed, 19 Oct 2016 16:34:41 -0700 Subject: [PATCH] Fix strings that were really bytes in typed_ast (#624) --- third_party/3/typed_ast/ast27.pyi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/third_party/3/typed_ast/ast27.pyi b/third_party/3/typed_ast/ast27.pyi index 8e88972a9..163b6a2e9 100644 --- a/third_party/3/typed_ast/ast27.pyi +++ b/third_party/3/typed_ast/ast27.pyi @@ -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