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

Class DateSubclass

Lib/test/datetimetester.py:1870–1874  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1868
1869 def test_subclass_replace(self):
1870 class DateSubclass(self.theclass):
1871 def __new__(cls, *args, **kwargs):
1872 result = self.theclass.__new__(cls, *args, **kwargs)
1873 result.extra = 7
1874 return result
1875
1876 dt = DateSubclass(2012, 1, 1)
1877

Callers 5

test_subclass_dateMethod · 0.70
test_subclass_replaceMethod · 0.70
test_check_dateMethod · 0.70

Calls

no outgoing calls

Tested by 5

test_subclass_dateMethod · 0.56
test_subclass_replaceMethod · 0.56
test_check_dateMethod · 0.56