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

Method __str__

Lib/test/test_enum.py:371–372  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

369 self.MainEnum = MainEnum = BaseEnum('MainEnum', dict(first=first, second=second, third=third, dupe=dupe))
370 #
371 def __str__(self):
372 return self.name.upper()
373 first = auto()
374 self.NewStrEnum = self.enum_type('NewStrEnum', (('first',first),('__str__',__str__)))
375 #

Callers

nothing calls this directly

Calls 2

upperMethod · 0.45
titleMethod · 0.45

Tested by

no test coverage detected