MCPcopy Create free account
hub / github.com/cloudpipe/cloudpickle / StringEnum

Class StringEnum

tests/cloudpickle_test.py:2363–2364  ·  view source on GitHub ↗

Enum when all members are also (and must be) strings

Source from the content-addressed store, hash-verified

2361
2362 def test_locally_defined_enum(self):
2363 class StringEnum(str, enum.Enum):
2364 """Enum when all members are also (and must be) strings"""
2365
2366 class Color(StringEnum):
2367 """3-element color space"""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected