From 3d0a7bc2517fabb4d3782b54d7bc66fa3b74d056 Mon Sep 17 00:00:00 2001 From: Gauri Chaudhari Date: Fri, 22 Sep 2023 21:06:37 -0400 Subject: [PATCH 01/10] Removed deprecated class SimpleEvents --- lib/matplotlib/patches.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/lib/matplotlib/patches.py b/lib/matplotlib/patches.py index f80df92c62fc..70fc7c4e91ca 100644 --- a/lib/matplotlib/patches.py +++ b/lib/matplotlib/patches.py @@ -2707,12 +2707,7 @@ 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 From 9811a87a956a5014e45c8ef3dc415de2eb1c47c1 Mon Sep 17 00:00:00 2001 From: Gauri Chaudhari Date: Fri, 22 Sep 2023 21:08:51 -0400 Subject: [PATCH 02/10] Removed deprecated SimpleEvents class --- lib/matplotlib/patches.pyi | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/matplotlib/patches.pyi b/lib/matplotlib/patches.pyi index 29fe36aa6c6b..6a738c7cb779 100644 --- a/lib/matplotlib/patches.pyi +++ b/lib/matplotlib/patches.pyi @@ -455,8 +455,6 @@ class BoxStyle(_Style): class ConnectionStyle(_Style): class _Base(ConnectionStyle): - class SimpleEvent: - def __init__(self, xy: tuple[float, float]) -> None: ... def __call__( self, From e11db6d0be43ffe50de772ba78c9c60ab8315152 Mon Sep 17 00:00:00 2001 From: Gauri Chaudhari Date: Fri, 22 Sep 2023 21:12:26 -0400 Subject: [PATCH 03/10] Create 26886-GC.rst --- doc/api/next_api_changes/removals/26886-GC.rst | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 doc/api/next_api_changes/removals/26886-GC.rst diff --git a/doc/api/next_api_changes/removals/26886-GC.rst b/doc/api/next_api_changes/removals/26886-GC.rst new file mode 100644 index 000000000000..9b724b73cf8e --- /dev/null +++ b/doc/api/next_api_changes/removals/26886-GC.rst @@ -0,0 +1,3 @@ +Remove Deprecated SimpleEvents class + ~~~~~~~~~~~~~~~~~~~~~~~ + ``matplotlib.patches.ConnectionStyle._Base.SimpleEvent`` From fcd8c954c1d7c75ddb84ae0b86f974ce148f00e2 Mon Sep 17 00:00:00 2001 From: Gauri Chaudhari Date: Fri, 22 Sep 2023 22:59:00 -0400 Subject: [PATCH 04/10] Removing whitespaces --- lib/matplotlib/patches.py | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/matplotlib/patches.py b/lib/matplotlib/patches.py index 70fc7c4e91ca..7b9e6e7aa060 100644 --- a/lib/matplotlib/patches.py +++ b/lib/matplotlib/patches.py @@ -2707,7 +2707,6 @@ class _Base: points. This base class defines a __call__ method, and a few helper methods. """ - def _in_patch(self, patch): """ Return a predicate function testing whether a point *xy* is From e5ea02b033dda1750a9478f979b0ace7a479ca03 Mon Sep 17 00:00:00 2001 From: Gauri Chaudhari Date: Fri, 22 Sep 2023 23:00:28 -0400 Subject: [PATCH 05/10] Removing whitespaces --- lib/matplotlib/patches.pyi | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/matplotlib/patches.pyi b/lib/matplotlib/patches.pyi index 6a738c7cb779..287ea0f738ab 100644 --- a/lib/matplotlib/patches.pyi +++ b/lib/matplotlib/patches.pyi @@ -455,7 +455,6 @@ class BoxStyle(_Style): class ConnectionStyle(_Style): class _Base(ConnectionStyle): - def __call__( self, posA: tuple[float, float], From a687189714642abd6e92e8be1b377f9c7a86bc9b Mon Sep 17 00:00:00 2001 From: Gauri Chaudhari Date: Fri, 22 Sep 2023 23:04:18 -0400 Subject: [PATCH 06/10] Rename 26886-GC.rst to 26888-GC.rst --- doc/api/next_api_changes/removals/{26886-GC.rst => 26888-GC.rst} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename doc/api/next_api_changes/removals/{26886-GC.rst => 26888-GC.rst} (100%) diff --git a/doc/api/next_api_changes/removals/26886-GC.rst b/doc/api/next_api_changes/removals/26888-GC.rst similarity index 100% rename from doc/api/next_api_changes/removals/26886-GC.rst rename to doc/api/next_api_changes/removals/26888-GC.rst From 3be9562a87a083c8a0e227f1053abbdd21e4ff78 Mon Sep 17 00:00:00 2001 From: Gauri Chaudhari Date: Fri, 22 Sep 2023 23:11:45 -0400 Subject: [PATCH 07/10] Update 26888-GC.rst --- doc/api/next_api_changes/removals/26888-GC.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/api/next_api_changes/removals/26888-GC.rst b/doc/api/next_api_changes/removals/26888-GC.rst index 9b724b73cf8e..de436291da78 100644 --- a/doc/api/next_api_changes/removals/26888-GC.rst +++ b/doc/api/next_api_changes/removals/26888-GC.rst @@ -1,3 +1,3 @@ -Remove Deprecated SimpleEvents class - ~~~~~~~~~~~~~~~~~~~~~~~ ``matplotlib.patches.ConnectionStyle._Base.SimpleEvent`` + ~~~~~~~~~~~~~~~~~~~~~~~ +... is removed without replacements. From 5aa6ebc203d3fd752e967265d2ad10b086c337a0 Mon Sep 17 00:00:00 2001 From: Gauri Chaudhari Date: Fri, 22 Sep 2023 23:15:55 -0400 Subject: [PATCH 08/10] Update 26888-GC.rst --- doc/api/next_api_changes/removals/26888-GC.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/api/next_api_changes/removals/26888-GC.rst b/doc/api/next_api_changes/removals/26888-GC.rst index de436291da78..f7b19ab03a23 100644 --- a/doc/api/next_api_changes/removals/26888-GC.rst +++ b/doc/api/next_api_changes/removals/26888-GC.rst @@ -1,3 +1,3 @@ - ``matplotlib.patches.ConnectionStyle._Base.SimpleEvent`` - ~~~~~~~~~~~~~~~~~~~~~~~ -... is removed without replacements. +Removing Deprecated API SimpleEvent +~~~~~~~~~~~~~~~~~~~~~~~ +``matplotlib.patches.ConnectionStyle._Base.SimpleEvent`` From 9974d1c21d1e67a878b8fab1ed71122c8b9fece1 Mon Sep 17 00:00:00 2001 From: Gauri Chaudhari Date: Fri, 22 Sep 2023 23:16:19 -0400 Subject: [PATCH 09/10] Rename 26888-GC.rst to 26889-GC.rst --- doc/api/next_api_changes/removals/{26888-GC.rst => 26889-GC.rst} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename doc/api/next_api_changes/removals/{26888-GC.rst => 26889-GC.rst} (100%) diff --git a/doc/api/next_api_changes/removals/26888-GC.rst b/doc/api/next_api_changes/removals/26889-GC.rst similarity index 100% rename from doc/api/next_api_changes/removals/26888-GC.rst rename to doc/api/next_api_changes/removals/26889-GC.rst From 01410fb64fb468508923a83729a080054c50986f Mon Sep 17 00:00:00 2001 From: Gauri Chaudhari Date: Fri, 22 Sep 2023 23:20:40 -0400 Subject: [PATCH 10/10] Update 26890-GC.rst --- doc/api/next_api_changes/removals/26889-GC.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/next_api_changes/removals/26889-GC.rst b/doc/api/next_api_changes/removals/26889-GC.rst index f7b19ab03a23..2cccc9fee113 100644 --- a/doc/api/next_api_changes/removals/26889-GC.rst +++ b/doc/api/next_api_changes/removals/26889-GC.rst @@ -1,3 +1,3 @@ Removing Deprecated API SimpleEvent -~~~~~~~~~~~~~~~~~~~~~~~ +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ``matplotlib.patches.ConnectionStyle._Base.SimpleEvent``