labapi.tree.mixins.HasNameMixin#

class labapi.tree.mixins.HasNameMixin(name: str)[source]#

Bases: object

A mixin class that provides a name attribute for tree nodes.

Classes inheriting from this mixin are expected to have a _name instance variable.

__init__(name: str)[source]#

Initialize the mixin with a node name.

Parameters:

name – The name of the tree node.

Methods

__init__(name)

Initialize the mixin with a node name.

Attributes

name

Return the tree node name.

property name: str#

Return the tree node name.

Returns:

The name of the node.