Skip to content

Commit c06a97e

Browse files
Removing deprecated api from patches (#26890)
* Removed deprecated class SimpleEvents * Removed deprecated SimpleEvents class * Create 26886-GC.rst * Removing whitespaces * Removing whitespaces * Rename 26886-GC.rst to 26888-GC.rst * Update 26888-GC.rst * Update 26888-GC.rst * Rename 26888-GC.rst to 26889-GC.rst * Update 26890-GC.rst
1 parent 6d5f286 commit c06a97e

File tree

3 files changed

+3
-9
lines changed

3 files changed

+3
-9
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Removing Deprecated API SimpleEvent
2+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3+
``matplotlib.patches.ConnectionStyle._Base.SimpleEvent``

lib/matplotlib/patches.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2707,12 +2707,6 @@ class _Base:
27072707
points. This base class defines a __call__ method, and a few
27082708
helper methods.
27092709
"""
2710-
2711-
@_api.deprecated("3.7")
2712-
class SimpleEvent:
2713-
def __init__(self, xy):
2714-
self.x, self.y = xy
2715-
27162710
def _in_patch(self, patch):
27172711
"""
27182712
Return a predicate function testing whether a point *xy* is

lib/matplotlib/patches.pyi

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -455,9 +455,6 @@ class BoxStyle(_Style):
455455

456456
class ConnectionStyle(_Style):
457457
class _Base(ConnectionStyle):
458-
class SimpleEvent:
459-
def __init__(self, xy: tuple[float, float]) -> None: ...
460-
461458
def __call__(
462459
self,
463460
posA: tuple[float, float],

0 commit comments

Comments
 (0)
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