zserio.enum module

The module provides custom zserio Enum which allows to mark enum items deprecated.

class zserio.enum.DeprecatedItem[source]

Bases: object

Marker used to make enum items deprecated.

Just use the class instead of creating an instance.

Example:

import zserio

class MyEnum(zserio.Enum):
    STABLE = 1,
    OLD = 2, zserio.DeprecatedItem
    NEW = 3
class zserio.enum.Enum(value, names=None)[source]

Bases: Enum

Custom zserio enum base class which allows to mark items deprecated.