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

Class NewStrFormatEnum

Lib/test/test_enum.py:312–317  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

310 self.NewFormatEnum = NewFormatEnum
311 #
312 class NewStrFormatEnum(self.enum_type):
313 def __str__(self):
314 return self.name.title()
315 def __format__(self, spec):
316 return ''.join(reversed(self.name))
317 first = auto()
318 self.NewStrFormatEnum = NewStrFormatEnum
319 #
320 class NewBaseEnum(self.enum_type):

Callers

nothing calls this directly

Calls 1

autoClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…