MCPcopy Index your code
hub / github.com/python/cpython / DateSubclass

Class DateSubclass

Lib/test/datetimetester.py:1875–1879  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1873
1874 def test_subclass_replace(self):
1875 class DateSubclass(self.theclass):
1876 def __new__(cls, *args, **kwargs):
1877 result = self.theclass.__new__(cls, *args, **kwargs)
1878 result.extra = 7
1879 return result
1880
1881 dt = DateSubclass(2012, 1, 1)
1882

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

Used in the wild real call sites across dependent graphs

searching dependent graphs…