Skip to content

Removing deprecated api from patches #26890

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Oct 11, 2023
3 changes: 3 additions & 0 deletions doc/api/next_api_changes/removals/26889-GC.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Removing Deprecated API SimpleEvent
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
``matplotlib.patches.ConnectionStyle._Base.SimpleEvent``
6 changes: 0 additions & 6 deletions lib/matplotlib/patches.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 0 additions & 3 deletions lib/matplotlib/patches.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy