ast.get_docstring: fix return type (#4595)

Resolves #4575
This commit is contained in:
Andrew Mitchell
2020-10-01 21:48:09 -04:00
committed by GitHub
parent bf5651e7a6
commit 8427e09424
2 changed files with 2 additions and 2 deletions

View File

@@ -12,7 +12,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[str]: ...
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]]: ...