scenario.enumutils module¶
enum
augmentations.
- class StrEnum¶
Bases:
str
,Enum
String enum.
- _member_names_ = []¶
- _member_map_ = {}¶
- _member_type_¶
alias of
str
- _value2member_map_ = {}¶
- enum2str(value)¶
Ensures a string value from a string/enum union.
- Parameters:
value – String already, or string enum.
- Returns:
String.
Note
value
if given as an enum is basically expected to be a string enum. Whether this is not the case, the value is converted as a string anyways.