Delete#

class astroid.nodes.Delete(lineno: int, col_offset: int, parent: NodeNG, *, end_lineno: int | None, end_col_offset: int | None)[source]#

Bases: AssignTypeNode, Statement

Class representing an ast.Delete node.

A Delete is a del statement this is deleting something.

>>> import astroid
>>> node = astroid.extract_node('del self.attr')
>>> node
<Delete l.1 at 0x7f23b2e35f60>
get_children()[source]#

Get the child nodes below this node.

postinit(targets: list[NodeNG]) None[source]#
targets: list[NodeNG]#

What is being deleted.