Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c201c8b

Browse filesBrowse files
committed
Fix return type of get_plot_commands
The typing PR found that this was returning a generator [1], but this was an error from #24000, as 3.6 and earlier returned a list. [1] #24976 (comment)
1 parent e240080 commit c201c8b
Copy full SHA for c201c8b

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed

‎lib/matplotlib/pyplot.py

Copy file name to clipboardExpand all lines: lib/matplotlib/pyplot.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2066,8 +2066,8 @@ def get_plot_commands():
20662066
NON_PLOT_COMMANDS = {
20672067
'connect', 'disconnect', 'get_current_fig_manager', 'ginput',
20682068
'new_figure_manager', 'waitforbuttonpress'}
2069-
return (name for name in _get_pyplot_commands()
2070-
if name not in NON_PLOT_COMMANDS)
2069+
return [name for name in _get_pyplot_commands()
2070+
if name not in NON_PLOT_COMMANDS]
20712071

20722072

20732073
def _get_pyplot_commands():

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.