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

Class TimeSubclass

Lib/test/datetimetester.py:4311–4315  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4309
4310 def test_subclass_replace(self):
4311 class TimeSubclass(self.theclass):
4312 def __new__(cls, *args, **kwargs):
4313 result = self.theclass.__new__(cls, *args, **kwargs)
4314 result.extra = 7
4315 return result
4316
4317 ctime = TimeSubclass(12, 30)
4318 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

Used in the wild real call sites across dependent graphs

searching dependent graphs…