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

Class WithComplex

Lib/test/test_complex.py:52–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50 return self.value
51
52class WithComplex:
53 def __init__(self, value):
54 self.value = value
55 def __complex__(self):
56 return self.value
57
58class ComplexTest(ComplexesAreIdenticalMixin, unittest.TestCase):
59

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…