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

Skip to content

Commit a15dc0f

Browse files
committed
BUG : fix typo in warning
1 parent 4d646fd commit a15dc0f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lib/matplotlib/axes/_axes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ def legend(self, *args, **kwargs):
462462
if (handles is not None or labels is not None) and len(args):
463463
warnings.warn("You have mixed positional and keyword "
464464
"arguments, some input will be "
465-
"be discarded.")
465+
"discarded.")
466466

467467
# if got both handles and labels as kwargs, make same length
468468
if handles and labels:

lib/matplotlib/tests/test_legend.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ def test_warn_args_kwargs(self):
222222

223223
warn.assert_called_with("You have mixed positional and keyword "
224224
"arguments, some input will be "
225-
"be discarded.")
225+
"discarded.")
226226

227227

228228
@image_comparison(baseline_images=['legend_stackplot'], extensions=['png'])

0 commit comments

Comments
 (0)