MCPcopy 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
174class FloatLike:
175 def __init__(self, value):
176 self.value = value
177
178 def __float__(self):
179 return self.value
180
181class IntSubclass(int):
182 pass

Callers 6

testCeilMethod · 0.70
testFloorMethod · 0.70
testFsumMethod · 0.70
testHypotMethod · 0.70
testDistMethod · 0.70
test_truncMethod · 0.70

Calls

no outgoing calls

Tested by 6

testCeilMethod · 0.56
testFloorMethod · 0.56
testFsumMethod · 0.56
testHypotMethod · 0.56
testDistMethod · 0.56
test_truncMethod · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…