summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Doc/library/numbers.rst4
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