NodeEnum#

class NodeEnum(value)[source]#

Bases: IntEnum

Custom dynamically picklable IntEnum class.

The Enum values for a device are created dynamically in toolkit based on the node informations. Since they are not predefined but rather created dynamically, the are not picklable. This custom child class of IntEnum overwrites the reduce function that returns all information required to recreate the Enum class in NodeEnumMeta.

For more information on the reduce functionality and how it is used within the pickle package see [pep307](https://peps.python.org/pep-0307/#extended-reduce-api).

Methods