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

Class TimeSubclass

Lib/test/datetimetester.py:4128–4132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4126
4127 def test_subclass_replace(self):
4128 class TimeSubclass(self.theclass):
4129 def __new__(cls, *args, **kwargs):
4130 result = self.theclass.__new__(cls, *args, **kwargs)
4131 result.extra = 7
4132 return result
4133
4134 ctime = TimeSubclass(12, 30)
4135 ctime2 = TimeSubclass(12, 30, fold=1)

Callers 3

test_subclass_replaceMethod · 0.70
test_check_timeMethod · 0.70

Calls

no outgoing calls

Tested by 3

test_subclass_replaceMethod · 0.56
test_check_timeMethod · 0.56