Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ FloatLike
Class
FloatLike
Lib/test/test_math.py:174–179 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
172
return
None
173
174
class
FloatLike:
175
def
__init__(self, value):
176
self.value = value
177
178
def
__float__(self):
179
return
self.value
180
181
class
IntSubclass(int):
182
pass
Callers
6
testCeil
Method · 0.70
testFloor
Method · 0.70
testFsum
Method · 0.70
testHypot
Method · 0.70
testDist
Method · 0.70
test_trunc
Method · 0.70
Calls
no outgoing calls
Tested by
6
testCeil
Method · 0.56
testFloor
Method · 0.56
testFsum
Method · 0.56
testHypot
Method · 0.56
testDist
Method · 0.56
test_trunc
Method · 0.56
Used in the wild
real call sites across dependent graphs
searching dependent graphs…