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

Class WithFloat

Lib/test/test_complex.py:33–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31 return self.value
32
33class WithFloat:
34 def __init__(self, value):
35 self.value = value
36 def __float__(self):
37 return self.value
38
39class ComplexSubclass(complex):
40 pass

Callers 2

test_constructorMethod · 0.85
test_from_numberMethod · 0.85

Calls

no outgoing calls

Tested by 2

test_constructorMethod · 0.68
test_from_numberMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…