Property

class astroid.objects.Property(function, name=None, lineno=None, col_offset=None, parent=None)[source]

Bases: FunctionDef

Class representing a Python property.

infer_call_result(caller: SuccessfulInferenceResult | None, context: InferenceContext | None = None) NoReturn[source]

Infer what the function returns when called.

pytype() Literal['builtins.property'][source]

Get the name of the type that this node represents.

Returns:

The name of the type.

special_attributes

The names of special attributes that this function has.

type = 'property'