MCPcopy Create free account
hub / github.com/RustPython/RustPython / FloatLike

Class FloatLike

Lib/test/test_math.py:223–228  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

221 return None
222
223class FloatLike:
224 def __init__(self, value):
225 self.value = value
226
227 def __float__(self):
228 return self.value
229
230class IntSubclass(int):
231 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