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

Class D

Lib/test/test_str.py:1107–1111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1105 return spec
1106
1107 class D:
1108 def __init__(self, x):
1109 self.x = x
1110 def __format__(self, spec):
1111 return str(self.x)
1112
1113 # class with __str__, but no __format__
1114 class E:

Callers 1

test_formatMethod · 0.70

Calls

no outgoing calls

Tested by 1

test_formatMethod · 0.56