MCPcopy Create free account
hub / github.com/brain-workshop/brainworkshop / __str__

Method __str__

brainworkshop.py:1914–1919  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1912
1913class PercentCycler(Cycler):
1914 def __str__(self):
1915 v = self.value()
1916 if type(v) == float and (v < .1 or v > .9) and not v in (0., 1.):
1917 return "%2.2f%%" % (v*100.)
1918 else:
1919 return "%2.1f%%" % (v*100.)
1920
1921class Menu:
1922 """

Callers

nothing calls this directly

Calls 1

valueMethod · 0.80

Tested by

no test coverage detected