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

Class F

Lib/test/test_str.py:1121–1125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1119
1120 # class with __repr__, but no __format__ or __str__
1121 class F:
1122 def __init__(self, x):
1123 self.x = x
1124 def __repr__(self):
1125 return 'F(' + self.x + ')'
1126
1127 # class with __format__ that forwards to string, for some format_spec's
1128 class G:

Callers 1

test_formatMethod · 0.70

Calls

no outgoing calls

Tested by 1

test_formatMethod · 0.56