Skip to content

Commit a9b5bc3

Browse files
Update numbers.rst (GH-31995)
(cherry picked from commit dde8a16) Co-authored-by: Géry Ogam <[email protected]>
1 parent b162f08 commit a9b5bc3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/library/numbers.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,9 +202,9 @@ forward and reverse instances of any given operator. For example,
202202
if isinstance(a, Rational):
203203
# Includes ints.
204204
return monomorphic_operator(a, b)
205-
elif isinstance(a, numbers.Real):
205+
elif isinstance(a, Real):
206206
return fallback_operator(float(a), float(b))
207-
elif isinstance(a, numbers.Complex):
207+
elif isinstance(a, Complex):
208208
return fallback_operator(complex(a), complex(b))
209209
else:
210210
return NotImplemented

0 commit comments

Comments
 (0)