MCPcopy Index your code
hub / github.com/python/cpython / SomeEnum

Class SomeEnum

Lib/test/test_enum.py:2450–2454  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2448 from collections import namedtuple
2449 T = namedtuple('T', 'index desc')
2450 class SomeEnum(T, Enum):
2451 __qualname__ = 'SomeEnum' # needed for pickle protocol 4
2452 first = auto(), 'for the money'
2453 second = auto(), 'for the show'
2454 third = auto(), 'for the music'
2455 self.assertIs(type(SomeEnum.first), SomeEnum)
2456 self.assertEqual(SomeEnum.third.value, (3, 'for the music'))
2457 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

Used in the wild real call sites across dependent graphs

searching dependent graphs…