Class Properties::PropertyObject

A Python property:

property
def f(): ….

Also any instances of types.GetSetDescriptorType (which are equivalent, but implemented in C)

Direct supertypes

Indirect supertypes

Known direct subtypes

Predicates

getDeleter

Gets the deleter of this property

getGetter

Gets the getter of this property

getInferredPropertyType

Gets an inferred type of this property. That is the type returned by its getter function, not the type of the property object which is types.PropertyType.

getName

Gets the name of this property

getSetter

Gets the setter of this property

isReadOnly

Whether this property is read-only.

toString

Inherited predicates

asBuiltin

INTERNAL – Do not use

from Object
booleanValue

The Boolean value of this object if it always evaluates to true or false. For example: false for None, true for 7 and no result for int(x)

from Object
getAnInferredType

Gets an inferred type for this object, without using inter-procedural analysis. WARNING: The lack of context makes this less accurate than f.refersTo(this, result, _) for a control flow node ‘f’

from Object
getOrigin

Gets the point in the source code from which this object “originates”.

from Object
hasLocationInfofrom Object
hasLongName

Holds if this object can be referred to by longName For example, the modules dict in the sys module has the long name sys.modules and the name os.path.join will refer to the path joining function even though it might be declared in the posix or nt modules. Long names can have no more than three dots after the module name.

from Object
isBuiltin

Whether this a builtin object. A builtin object is one defined by the implementation, such as the integer 4 or by a native extension, such as a NumPy array class.

from Object
isC

Retained for backwards compatibility. See Object.isBuiltin()

from Object
maybefrom Object
notClassfrom Object
overrides

Whether this overrides o. In this context, “overrides” means that this object is a named attribute of a some class C and o is a named attribute of another class S, both attributes having the same name, and S is a super class of C.

from Object
simpleClass

Gets the class of this object for simple cases, namely constants, functions, comprehensions and built-in objects.

from Object

Charpred