Skip to content

hasProperty

Canonical path: o6.hasProperty

hasProperty

hasProperty(instance: None) -> Any
hasProperty(instance: _T) -> _T
hasProperty(instance)

Attach a declaration to its containing type through HasProperty.

Returns the declaration unchanged, so the static type of the class attribute is preserved. Pass None to declare the relationship without a target instance. On a generated enumeration, this also keeps the linked node out of Python's enum member table.

See Type child relationships.