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

Class N

Lib/test/test_str.py:1153–1158  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1151 __str__ = None
1152
1153 class N:
1154 def __init__(self, x):
1155 self.x = x
1156 def __repr__(self):
1157 return 'N(' + self.x + ')'
1158 __format__ = None
1159
1160 self.assertEqual(''.format(), '')
1161 self.assertEqual('abc'.format(), 'abc')

Callers 1

test_formatMethod · 0.70

Calls

no outgoing calls

Tested by 1

test_formatMethod · 0.56