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

Class MyInt

Lib/test/test_statistics.py:954–954  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

952 x = statistics._convert(Fraction(71), int)
953 self.check_exact_equal(x, 71)
954 class MyInt(int): pass
955 x = statistics._convert(Fraction(17), MyInt)
956 self.check_exact_equal(x, MyInt(17))
957

Callers 1

test_intMethod · 0.70

Calls

no outgoing calls

Tested by 1

test_intMethod · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…