Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ 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
52
class
WithComplex:
53
def
__init__(self, value):
54
self.value = value
55
def
__complex__(self):
56
return
self.value
57
58
class
ComplexTest(ComplexesAreIdenticalMixin, unittest.TestCase):
59
Callers
2
test_constructor
Method · 0.85
test_from_number
Method · 0.85
Calls
no outgoing calls
Tested by
2
test_constructor
Method · 0.68
test_from_number
Method · 0.68