MCPcopy Index your code
hub / github.com/RustPython/RustPython / __format__

Method __format__

Lib/test/test_str.py:1139–1140  ·  view source on GitHub ↗
(self, format_spec)

Source from the content-addressed store, hash-verified

1137
1138 class I(datetime.date):
1139 def __format__(self, format_spec):
1140 return self.strftime(format_spec)
1141
1142 class J(int):
1143 def __format__(self, format_spec):

Callers

nothing calls this directly

Calls 1

strftimeMethod · 0.45

Tested by

no test coverage detected