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

Class BaseEnum

Lib/test/test_enum.py:286–289  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

284 def setUp(self):
285 if self.__class__.__name__[-5:] == 'Class':
286 class BaseEnum(self.enum_type):
287 @enum.property
288 def first(self):
289 return '%s is first!' % self.name
290 class MainEnum(BaseEnum):
291 first = auto()
292 second = auto()

Callers 1

setUpMethod · 0.85

Calls

no outgoing calls

Tested by 1

setUpMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…