Skip to content

Commit

Permalink
MNT: more codeql warnings addressed
Browse files Browse the repository at this point in the history
  • Loading branch information
tacaswell committed Dec 29, 2024
1 parent e9ba620 commit 916a46d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mpl_gui/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ def show_all(self, *, block=None, timeout=None):
if timeout is None:
timeout = self._timeout
self._ensure_all_figures_promoted()
display(*self.figures, block=self._block, timeout=self._timeout)
display(*self.figures, block=self._block, timeout=timeout)

# alias to easy pyplot compatibility
show = show_all
Expand Down Expand Up @@ -327,6 +327,7 @@ def close(self, val):
_FigureCanvasBase(figure=fig)
assert fig.canvas.manager is None
self._fig_to_number.pop(fig, None)
return


class FigureContext(FigureRegistry):
Expand Down

0 comments on commit 916a46d

Please sign in to comment.