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

Method __pos__

Lib/fractions.py:935–937  ·  view source on GitHub ↗

+a: Coerces a subclass instance to Fraction

(a)

Source from the content-addressed store, hash-verified

933 return a ** float(b)
934
935 def __pos__(a):
936 """+a: Coerces a subclass instance to Fraction"""
937 return Fraction._from_coprime_ints(a._numerator, a._denominator)
938
939 def __neg__(a):
940 """-a"""

Callers

nothing calls this directly

Calls 1

_from_coprime_intsMethod · 0.80

Tested by

no test coverage detected