From: Géry Ogam Date: Tue, 10 May 2022 18:01:49 +0000 (+0200) Subject: Update numbers.rst (#31995) X-Git-Tag: v3.12.0a1~1597 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=dde8a1668e0a6ad09634d0c701742c91da616497;p=thirdparty%2FPython%2Fcpython.git Update numbers.rst (#31995) --- diff --git a/Doc/library/numbers.rst b/Doc/library/numbers.rst index b77845ed0dee..b12f82ed75a6 100644 --- a/Doc/library/numbers.rst +++ b/Doc/library/numbers.rst @@ -202,9 +202,9 @@ forward and reverse instances of any given operator. For example, if isinstance(a, Rational): # Includes ints. return monomorphic_operator(a, b) - elif isinstance(a, numbers.Real): + elif isinstance(a, Real): return fallback_operator(float(a), float(b)) - elif isinstance(a, numbers.Complex): + elif isinstance(a, Complex): return fallback_operator(complex(a), complex(b)) else: return NotImplemented