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>
get_children()[source]

Get the child nodes below this node.

is_tuple_return() bool[source]
postinit(value: NodeNG | None) None[source]
value: NodeNG | None

The value being returned.