Skip to content

Commit e280ed9

Browse files
committed
Use deprecate_privatize_attribute in favour of deprecate to simplify code
1 parent 7abf57c commit e280ed9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/matplotlib/widgets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2038,7 +2038,7 @@ def __init__(self, ax, onselect, direction, minspan=0, useblit=False,
20382038
property(lambda self: self._interactive)
20392039
)
20402040

2041-
prev = _api.deprecated("3.5")(property(lambda self: self._prev))
2041+
prev = _api.deprecate_privatize_attribute("3.5")
20422042

20432043
def new_axes(self, ax):
20442044
"""Set SpanSelector to operate on a new Axes."""

0 commit comments

Comments
 (0)