diff --git a/doc/api/next_api_changes/removals/26889-GC.rst b/doc/api/next_api_changes/removals/26889-GC.rst new file mode 100644 index 000000000000..2cccc9fee113 --- /dev/null +++ b/doc/api/next_api_changes/removals/26889-GC.rst @@ -0,0 +1,3 @@ +Removing Deprecated API SimpleEvent +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +``matplotlib.patches.ConnectionStyle._Base.SimpleEvent`` diff --git a/lib/matplotlib/patches.py b/lib/matplotlib/patches.py index f80df92c62fc..7b9e6e7aa060 100644 --- a/lib/matplotlib/patches.py +++ b/lib/matplotlib/patches.py @@ -2707,12 +2707,6 @@ class _Base: points. This base class defines a __call__ method, and a few helper methods. """ - - @_api.deprecated("3.7") - class SimpleEvent: - def __init__(self, xy): - self.x, self.y = xy - def _in_patch(self, patch): """ Return a predicate function testing whether a point *xy* is diff --git a/lib/matplotlib/patches.pyi b/lib/matplotlib/patches.pyi index 29fe36aa6c6b..287ea0f738ab 100644 --- a/lib/matplotlib/patches.pyi +++ b/lib/matplotlib/patches.pyi @@ -455,9 +455,6 @@ class BoxStyle(_Style): class ConnectionStyle(_Style): class _Base(ConnectionStyle): - class SimpleEvent: - def __init__(self, xy: tuple[float, float]) -> None: ... - def __call__( self, posA: tuple[float, float],