FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fix Deprecation in patches.py by gaurichaudhari9 · Pull Request #26875 · matplotlib/matplotlib · GitHub

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .py  (1) .pyi  (1) .rst  (1) All 3 file types selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
3 changes: 3 additions & 0 deletions doc/api/next_api_changes/removals/26875-GC.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
class SimpleEvent

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Should be explicit about the path to the class:

Suggested change
class SimpleEvent
``matplotlib.patches.ConnectionStyle._Base.SimpleEvent``
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


... is removed without replacements.
6 changes: 0 additions & 6 deletions lib/matplotlib/patches.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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

Back | FazBrowse Home | New Git URL