Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2129a40

Browse files
committed
MNT : code linting
use descriptive name in generator rather than `_` even if it is going to be dropped
1 parent 2bddb79 commit 2129a40

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/matplotlib/axes/_axes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ def legend(self, *args, **kwargs):
471471

472472
elif labels is not None and handles is None:
473473
# Get as many handles as there are labels.
474-
handles = [handle for handle, _
474+
handles = [handle for handle, label
475475
in zip(self._get_legend_handles(handlers), labels)]
476476

477477
# No arguments - automatically detect labels and handles.
@@ -486,7 +486,7 @@ def legend(self, *args, **kwargs):
486486
elif len(args) == 1:
487487
labels, = args
488488
# Get as many handles as there are labels.
489-
handles = [handle for handle, _
489+
handles = [handle for handle, label
490490
in zip(self._get_legend_handles(handlers), labels)]
491491

492492
# Two arguments:

0 commit comments

Comments
 (0)