Set#

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

Bases: BaseContainer

Class representing an ast.Set node.

>>> import astroid
>>> node = astroid.extract_node('{1, 2, 3}')
>>> node
<Set.set l.1 at 0x7f23b2e71d68>
infer_unary_op(op)#
pytype() Literal['builtins.set'][source]#

Get the name of the type that this node represents.

Returns:

The name of the type.