Skip to content

Commit dde8a16

Browse files
authored
Update numbers.rst (#31995)
1 parent 392fd27 commit dde8a16

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)