Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
33
class
WithFloat:
34
def
__init__(self, value):
35
self.value = value
36
def
__float__(self):
37
return
self.value
38
39
class
ComplexSubclass(complex):
40
pass
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
Used in the wild
real call sites across dependent graphs
searching dependent graphs…