From d2a326639d609e2ad7e2224ceaa4214acf8997c3 Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Fri, 16 Dec 2022 19:46:52 -0500 Subject: [PATCH] Fix deprecations of *Cursor widget event handlers These were added in #19763. --- lib/matplotlib/widgets.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/matplotlib/widgets.py b/lib/matplotlib/widgets.py index a909b856951e..23c4b4a83686 100644 --- a/lib/matplotlib/widgets.py +++ b/lib/matplotlib/widgets.py @@ -1616,7 +1616,7 @@ def __init__(self, ax, horizOn=True, vertOn=True, useblit=False, self.background = None self.needclear = False - @_api.deprecated('3.5') + @_api.deprecated('3.7') def clear(self, event): """Internal event handler to clear the cursor.""" self._clear(event) @@ -1632,7 +1632,7 @@ def _clear(self, event): if self.useblit: self.background = self.canvas.copy_from_bbox(self.ax.bbox) - onmove = _api.deprecate_privatize_attribute('3.5') + onmove = _api.deprecate_privatize_attribute('3.7') def _onmove(self, event): """Internal event handler to draw the cursor when the mouse moves.""" @@ -1769,7 +1769,7 @@ def disconnect(self): canvas.mpl_disconnect(cid) info["cids"].clear() - @_api.deprecated('3.5') + @_api.deprecated('3.7') def clear(self, event): """Clear the cursor.""" if self.ignore(event): @@ -1786,7 +1786,7 @@ def _clear(self, event): for canvas, info in self._canvas_infos.items(): info["background"] = canvas.copy_from_bbox(canvas.figure.bbox) - onmove = _api.deprecate_privatize_attribute('3.5') + onmove = _api.deprecate_privatize_attribute('3.7') def _onmove(self, event): if (self.ignore(event)