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

Class C

Lib/test/test_str.py:1101–1105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1099
1100 # classes we'll use for testing
1101 class C:
1102 def __init__(self, x=100):
1103 self._x = x
1104 def __format__(self, spec):
1105 return spec
1106
1107 class D:
1108 def __init__(self, x):

Callers 3

test_formatMethod · 0.70
test_format_mapMethod · 0.70

Calls

no outgoing calls

Tested by 3

test_formatMethod · 0.56
test_format_mapMethod · 0.56