MCPcopy Index your code
hub / github.com/python/cpython / Foo2

Class Foo2

Lib/test/test_float.py:209–211  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

207 def test_floatconversion(self):
208 # Make sure that calls to __float__() work properly
209 class Foo2(float):
210 def __float__(self):
211 return 42.
212
213 class Foo3(float):
214 def __new__(cls, value=0.):

Callers 1

test_floatconversionMethod · 0.70

Calls

no outgoing calls

Tested by 1

test_floatconversionMethod · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…