MCPcopy Index your code
hub / github.com/RustPython/RustPython / SomeEnum

Class SomeEnum

Lib/test/test_enum.py:2420–2424  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2418 from collections import namedtuple
2419 T = namedtuple('T', 'index desc')
2420 class SomeEnum(T, Enum):
2421 __qualname__ = 'SomeEnum' # needed for pickle protocol 4
2422 first = auto(), 'for the money'
2423 second = auto(), 'for the show'
2424 third = auto(), 'for the music'
2425 self.assertIs(type(SomeEnum.first), SomeEnum)
2426 self.assertEqual(SomeEnum.third.value, (3, 'for the music'))
2427 self.assertIsInstance(SomeEnum.third.value, T)

Callers

nothing calls this directly

Calls 2

autoClass · 0.90
TClass · 0.70

Tested by

no test coverage detected