instancelib.instances.children module

class instancelib.instances.children.MemoryChildrenMixin(*args, **kwds)[source]

Bases: MutableMapping[KT, IT], Generic[IT, KT, DT, VT, RT]

add_child(parent, child)[source]
Parameters:
Return type:

None

children: MutableMapping[TypeVar(KT), Set[TypeVar(KT)]]
discard_children(parent)[source]
Parameters:

parent (Union[TypeVar(KT), Instance[TypeVar(KT), TypeVar(DT), TypeVar(VT), TypeVar(RT)]]) –

Return type:

None

get_children(parent)[source]
Parameters:

parent (Union[TypeVar(KT), Instance[TypeVar(KT), TypeVar(DT), TypeVar(VT), TypeVar(RT)]]) –

Return type:

Sequence[TypeVar(IT, bound= Instance[Any, Any, Any, Any])]

get_children_keys(parent)[source]
Parameters:

parent (Union[TypeVar(KT), Instance[TypeVar(KT), TypeVar(DT), TypeVar(VT), TypeVar(RT)]]) –

Return type:

Sequence[TypeVar(KT)]

get_parent(child)[source]
Parameters:

child (Union[TypeVar(KT), Instance[TypeVar(KT), TypeVar(DT), TypeVar(VT), TypeVar(RT)]]) –

Return type:

TypeVar(IT, bound= Instance[Any, Any, Any, Any])

parents: MutableMapping[TypeVar(KT), TypeVar(KT)]