Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
issue: 26871 - Remove SimplePath class which is deprecated since 3.7
  • Loading branch information
prateetishah authored and prateetishah committed Sep 22, 2023
commit b506bfb3c501fa11b4cf8af35512684503249088
7 changes: 0 additions & 7 deletions doc/api/next_api_changes/removals/00001-ABC.rst

This file was deleted.

3 changes: 3 additions & 0 deletions doc/api/next_api_changes/removals/26871-PS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Remove Deprecated API
~~~~~~~~~~~~~~~~~~~~~~~
``matplotlib.patches.SimplePath``

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you check the deprecation note an copy over the alternative if any?

5 changes: 0 additions & 5 deletions lib/matplotlib/patches.py
Original file line number Diff line number Diff line change
Expand Up @@ -2708,11 +2708,6 @@ class _Base:
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
4 changes: 2 additions & 2 deletions lib/matplotlib/patches.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -455,8 +455,8 @@ class BoxStyle(_Style):

class ConnectionStyle(_Style):
class _Base(ConnectionStyle):
class SimpleEvent:
def __init__(self, xy: tuple[float, float]) -> None: ...
# class SimpleEvent:
# def __init__(self, xy: tuple[float, float]) -> None: ...

def __call__(
self,
Expand Down