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

Skip to content

Commit 76b479f

Browse files
authored
Merge pull request #25581 from meeseeksmachine/auto-backport-of-pr-25580-on-v3.7.x
Backport PR #25580 on branch v3.7.x (Fix return type of get_plot_commands)
2 parents 94b73b8 + 926f290 commit 76b479f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/pyplot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2105,8 +2105,8 @@ def get_plot_commands():
21052105
NON_PLOT_COMMANDS = {
21062106
'connect', 'disconnect', 'get_current_fig_manager', 'ginput',
21072107
'new_figure_manager', 'waitforbuttonpress'}
2108-
return (name for name in _get_pyplot_commands()
2109-
if name not in NON_PLOT_COMMANDS)
2108+
return [name for name in _get_pyplot_commands()
2109+
if name not in NON_PLOT_COMMANDS]
21102110

21112111

21122112
def _get_pyplot_commands():

0 commit comments

Comments
 (0)