MCPcopy Index your code
hub / github.com/RustPython/RustPython / F

Class F

extra_tests/snippets/builtin_int.py:297–299  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

295
296
297class F(float):
298 def __int__(self):
299 return 3
300
301
302assert int(F(1.2)) == 3

Callers 1

builtin_int.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected