class documentation

class ParentMixin(Generic[_ParentType]):

Constructor: ParentMixin(parent, **kwargs)

View In Hierarchy

(Optional) Mixin for typing the parent of an UaObject.

Note: Parent cannot be None when you use this mixin!

Method __init__ Type-checking stub for typed parent parameter.
Method parent.setter Set the parent of this UaObject instance.
Property parent Parent of this UaObject instance.
Property root_parent Root parent (=a machine) of this UaObject.
Instance Variable _parent Undocumented
def __init__(self, *, parent: _ParentType | None = None, **kwargs: Any):

Type-checking stub for typed parent parameter.

def parent(self, parent: BaseUaObject[Server]):

Set the parent of this UaObject instance.

Given parent will be runtime type-checked against the generic _ParentType of ParentMixin.

@property
parent: _ParentType =

Parent of this UaObject instance.

@property
root_parent: BaseMachine =

Root parent (=a machine) of this UaObject.

_parent: BaseUaObject[Server] | None =

Undocumented