Return¶
- class astroid.nodes.Return(lineno: int | None, col_offset: int | None, parent: NodeNG | None, *, end_lineno: int | None, end_col_offset: int | None)[source]¶
Bases:
Statement
Class representing an
ast.Return
node.>>> import astroid >>> node = astroid.extract_node('return True') >>> node <Return l.1 at 0x7f23b8211908>