Skip to content

Commit

Permalink
Update numbers.rst (python#31995)
Browse files Browse the repository at this point in the history
  • Loading branch information
geryogam authored May 10, 2022
1 parent 392fd27 commit dde8a16
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Doc/library/numbers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dde8a16

Please sign in to comment.