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

Class MyFraction

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

Source from the content-addressed store, hash-verified

960 x = statistics._convert(Fraction(95, 99), Fraction)
961 self.check_exact_equal(x, Fraction(95, 99))
962 class MyFraction(Fraction):
963 def __truediv__(self, other):
964 return self.__class__(super().__truediv__(other))
965 x = statistics._convert(Fraction(71, 13), MyFraction)
966 self.check_exact_equal(x, MyFraction(71, 13))
967

Callers 1

test_fractionMethod · 0.85

Calls

no outgoing calls

Tested by 1

test_fractionMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…