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

Method replace

Lib/test/datetimetester.py:2380–2381  ·  view source on GitHub ↗
(self, *args)

Source from the content-addressed store, hash-verified

2378 def tzname(self, dt):
2379 class MyStr(str):
2380 def replace(self, *args):
2381 return None
2382 return MyStr('name')
2383 t = self.theclass(2005, 3, 2, 0, 0, 0, 0, MyTzInfo(3, 'name'))
2384 self.assertRaises(TypeError, t.strftime, '%Z')

Callers 15

test_basicsMethod · 0.45
test_replace_methodMethod · 0.45
test_namedtupleMethod · 0.45
test_dataclassMethod · 0.45
escapestrFunction · 0.45
check_encodingMethod · 0.45
test_localeMethod · 0.45
create_moduleMethod · 0.45
_recursive_replaceMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected