diff options
author | Géry Ogam <gery.ogam@gmail.com> | 2022-05-10 18:01:49 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-10 18:01:49 (GMT) |
commit | dde8a1668e0a6ad09634d0c701742c91da616497 (patch) | |
tree | b29ee7e35c70ab8992a1581ac2280a91d11f2858 | |
parent | 392fd272cde0542859063ea01980091945029e95 (diff) | |
download | cpython-dde8a1668e0a6ad09634d0c701742c91da616497.zip cpython-dde8a1668e0a6ad09634d0c701742c91da616497.tar.gz cpython-dde8a1668e0a6ad09634d0c701742c91da616497.tar.bz2 |
Update numbers.rst (#31995)
-rw-r--r-- | Doc/library/numbers.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/numbers.rst b/Doc/library/numbers.rst index b77845e..b12f82e 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 |