MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / __pos__

Method __pos__

tools/python-3.11.9-amd64/Lib/fractions.py:585–587  ·  view source on GitHub ↗

+a: Coerces a subclass instance to Fraction

(a)

Source from the content-addressed store, hash-verified

583 return a ** float(b)
584
585 def __pos__(a):
586 """+a: Coerces a subclass instance to Fraction"""
587 return Fraction(a._numerator, a._denominator, _normalize=False)
588
589 def __neg__(a):
590 """-a"""

Callers

nothing calls this directly

Calls 1

FractionClass · 0.85

Tested by

no test coverage detected