Skip to content

Commit 9bb4013

Browse files
NoyHananQuLogic
andcommitted
Update lib/matplotlib/rcsetup.py
Co-authored-by: Elliott Sales de Andrade <[email protected]>
1 parent f847d53 commit 9bb4013

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

lib/matplotlib/rcsetup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -759,8 +759,7 @@ def validate_legend_loc(loc):
759759
if 0 <= loc <= 10:
760760
return loc
761761
if isinstance(loc, tuple):
762-
if len(loc) == 2 \
763-
and all(isinstance(e, numbers.Real) for e in loc):
762+
if len(loc) == 2 and all(isinstance(e, Real) for e in loc):
764763
return loc
765764
raise ValueError(f"{loc} is not a valid legend location.")
766765

0 commit comments

Comments
 (0)