From f4ea77563a0944a15cd95ed43f9d069224bcc806 Mon Sep 17 00:00:00 2001 From: vigneshvetrivel8 Date: Mon, 25 Sep 2023 16:11:04 +0530 Subject: [PATCH 1/5] deprecated api tri --- lib/matplotlib/tri/triangulation.py | 2 +- lib/matplotlib/tri/tricontour.py | 2 +- lib/matplotlib/tri/trifinder.py | 2 +- lib/matplotlib/tri/triinterpolate.py | 2 +- lib/matplotlib/tri/tripcolor.py | 2 +- lib/matplotlib/tri/triplot.py | 2 +- lib/matplotlib/tri/trirefine.py | 2 +- lib/matplotlib/tri/tritools.py | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/matplotlib/tri/triangulation.py b/lib/matplotlib/tri/triangulation.py index c48b09b280ff..7d47c2b0a058 100644 --- a/lib/matplotlib/tri/triangulation.py +++ b/lib/matplotlib/tri/triangulation.py @@ -1,4 +1,4 @@ -from ._triangulation import * # noqa: F401, F403 +from matplotlib.tri import * # noqa: F401, F403 from matplotlib import _api diff --git a/lib/matplotlib/tri/tricontour.py b/lib/matplotlib/tri/tricontour.py index 37406451d376..7d47c2b0a058 100644 --- a/lib/matplotlib/tri/tricontour.py +++ b/lib/matplotlib/tri/tricontour.py @@ -1,4 +1,4 @@ -from ._tricontour import * # noqa: F401, F403 +from matplotlib.tri import * # noqa: F401, F403 from matplotlib import _api diff --git a/lib/matplotlib/tri/trifinder.py b/lib/matplotlib/tri/trifinder.py index 1aff5c9d3280..7d47c2b0a058 100644 --- a/lib/matplotlib/tri/trifinder.py +++ b/lib/matplotlib/tri/trifinder.py @@ -1,4 +1,4 @@ -from ._trifinder import * # noqa: F401, F403 +from matplotlib.tri import * # noqa: F401, F403 from matplotlib import _api diff --git a/lib/matplotlib/tri/triinterpolate.py b/lib/matplotlib/tri/triinterpolate.py index 3112bd38e6c6..7d47c2b0a058 100644 --- a/lib/matplotlib/tri/triinterpolate.py +++ b/lib/matplotlib/tri/triinterpolate.py @@ -1,4 +1,4 @@ -from ._triinterpolate import * # noqa: F401, F403 +from matplotlib.tri import * # noqa: F401, F403 from matplotlib import _api diff --git a/lib/matplotlib/tri/tripcolor.py b/lib/matplotlib/tri/tripcolor.py index 0da87891810d..7d47c2b0a058 100644 --- a/lib/matplotlib/tri/tripcolor.py +++ b/lib/matplotlib/tri/tripcolor.py @@ -1,4 +1,4 @@ -from ._tripcolor import * # noqa: F401, F403 +from matplotlib.tri import * # noqa: F401, F403 from matplotlib import _api diff --git a/lib/matplotlib/tri/triplot.py b/lib/matplotlib/tri/triplot.py index 7c012b1a59e7..7d47c2b0a058 100644 --- a/lib/matplotlib/tri/triplot.py +++ b/lib/matplotlib/tri/triplot.py @@ -1,4 +1,4 @@ -from ._triplot import * # noqa: F401, F403 +from matplotlib.tri import * # noqa: F401, F403 from matplotlib import _api diff --git a/lib/matplotlib/tri/trirefine.py b/lib/matplotlib/tri/trirefine.py index 6f22f9e8d203..7d47c2b0a058 100644 --- a/lib/matplotlib/tri/trirefine.py +++ b/lib/matplotlib/tri/trirefine.py @@ -1,4 +1,4 @@ -from ._trirefine import * # noqa: F401, F403 +from matplotlib.tri import * # noqa: F401, F403 from matplotlib import _api diff --git a/lib/matplotlib/tri/tritools.py b/lib/matplotlib/tri/tritools.py index 9c6839ca2049..7d47c2b0a058 100644 --- a/lib/matplotlib/tri/tritools.py +++ b/lib/matplotlib/tri/tritools.py @@ -1,4 +1,4 @@ -from ._tritools import * # noqa: F401, F403 +from matplotlib.tri import * # noqa: F401, F403 from matplotlib import _api From 75dbcc0cc5f6f9da7998b628cd7cd3713c3ddd4c Mon Sep 17 00:00:00 2001 From: vigneshvetrivel8 Date: Tue, 26 Sep 2023 13:28:18 +0530 Subject: [PATCH 2/5] updated deprecated api --- doc/api/next_api_changes/removals/00001-ABC.rst | 7 +++---- lib/matplotlib/tri/triangulation.py | 12 ++++-------- lib/matplotlib/tri/tricontour.py | 12 ++++-------- lib/matplotlib/tri/trifinder.py | 12 ++++-------- lib/matplotlib/tri/triinterpolate.py | 12 ++++-------- lib/matplotlib/tri/tripcolor.py | 12 ++++-------- lib/matplotlib/tri/triplot.py | 12 ++++-------- lib/matplotlib/tri/trirefine.py | 12 ++++-------- lib/matplotlib/tri/tritools.py | 12 ++++-------- 9 files changed, 35 insertions(+), 68 deletions(-) diff --git a/doc/api/next_api_changes/removals/00001-ABC.rst b/doc/api/next_api_changes/removals/00001-ABC.rst index 3cc5b6344f7f..64fbf17dbe6f 100644 --- a/doc/api/next_api_changes/removals/00001-ABC.rst +++ b/doc/api/next_api_changes/removals/00001-ABC.rst @@ -1,7 +1,6 @@ -Removal change template +_api.warn_deprecated is updated ~~~~~~~~~~~~~~~~~~~~~~~ -Enter description of methods/classes removed here.... +... In the ``lib/matplotlib/tri/`` directory. -Please rename file with PR number and your initials i.e. "99999-ABC.rst" -and ``git add`` the new file. +All files with _api.warn_deprecated is replaced with ValueError. \ No newline at end of file diff --git a/lib/matplotlib/tri/triangulation.py b/lib/matplotlib/tri/triangulation.py index 7d47c2b0a058..06a4dd96c27f 100644 --- a/lib/matplotlib/tri/triangulation.py +++ b/lib/matplotlib/tri/triangulation.py @@ -1,9 +1,5 @@ -from matplotlib.tri import * # noqa: F401, F403 -from matplotlib import _api +from ._triangulation import * # noqa: F401, F403 - -_api.warn_deprecated( - "3.7", - message=f"Importing {__name__} was deprecated in Matplotlib 3.7 and will " - f"be removed two minor releases later. All functionality is " - f"available via the top-level module matplotlib.tri") +raise ValueError(f"Importing {__name__} was deprecated in Matplotlib 3.7 and will " + f"be removed two minor releases later. All functionality is " + f"available via the top-level module matplotlib.tri") \ No newline at end of file diff --git a/lib/matplotlib/tri/tricontour.py b/lib/matplotlib/tri/tricontour.py index 7d47c2b0a058..efaa10e7e44b 100644 --- a/lib/matplotlib/tri/tricontour.py +++ b/lib/matplotlib/tri/tricontour.py @@ -1,9 +1,5 @@ -from matplotlib.tri import * # noqa: F401, F403 -from matplotlib import _api +from ._tricontour import * # noqa: F401, F403 - -_api.warn_deprecated( - "3.7", - message=f"Importing {__name__} was deprecated in Matplotlib 3.7 and will " - f"be removed two minor releases later. All functionality is " - f"available via the top-level module matplotlib.tri") +raise ValueError(f"Importing {__name__} was deprecated in Matplotlib 3.7 and will " + f"be removed two minor releases later. All functionality is " + f"available via the top-level module matplotlib.tri") diff --git a/lib/matplotlib/tri/trifinder.py b/lib/matplotlib/tri/trifinder.py index 7d47c2b0a058..8c0ef1d7d3b4 100644 --- a/lib/matplotlib/tri/trifinder.py +++ b/lib/matplotlib/tri/trifinder.py @@ -1,9 +1,5 @@ -from matplotlib.tri import * # noqa: F401, F403 -from matplotlib import _api +from ._trifinder import * # noqa: F401, F403 - -_api.warn_deprecated( - "3.7", - message=f"Importing {__name__} was deprecated in Matplotlib 3.7 and will " - f"be removed two minor releases later. All functionality is " - f"available via the top-level module matplotlib.tri") +raise ValueError(f"Importing {__name__} was deprecated in Matplotlib 3.7 and will " + f"be removed two minor releases later. All functionality is " + f"available via the top-level module matplotlib.tri") \ No newline at end of file diff --git a/lib/matplotlib/tri/triinterpolate.py b/lib/matplotlib/tri/triinterpolate.py index 7d47c2b0a058..6ab427d4c6cc 100644 --- a/lib/matplotlib/tri/triinterpolate.py +++ b/lib/matplotlib/tri/triinterpolate.py @@ -1,9 +1,5 @@ -from matplotlib.tri import * # noqa: F401, F403 -from matplotlib import _api +from ._triinterpolate import * # noqa: F401, F403 - -_api.warn_deprecated( - "3.7", - message=f"Importing {__name__} was deprecated in Matplotlib 3.7 and will " - f"be removed two minor releases later. All functionality is " - f"available via the top-level module matplotlib.tri") +raise ValueError(f"Importing {__name__} was deprecated in Matplotlib 3.7 and will " + f"be removed two minor releases later. All functionality is " + f"available via the top-level module matplotlib.tri") \ No newline at end of file diff --git a/lib/matplotlib/tri/tripcolor.py b/lib/matplotlib/tri/tripcolor.py index 7d47c2b0a058..a29c818ef0ae 100644 --- a/lib/matplotlib/tri/tripcolor.py +++ b/lib/matplotlib/tri/tripcolor.py @@ -1,9 +1,5 @@ -from matplotlib.tri import * # noqa: F401, F403 -from matplotlib import _api +from ._tripcolor import * # noqa: F401, F403 - -_api.warn_deprecated( - "3.7", - message=f"Importing {__name__} was deprecated in Matplotlib 3.7 and will " - f"be removed two minor releases later. All functionality is " - f"available via the top-level module matplotlib.tri") +raise ValueError(f"Importing {__name__} was deprecated in Matplotlib 3.7 and will " + f"be removed two minor releases later. All functionality is " + f"available via the top-level module matplotlib.tri") \ No newline at end of file diff --git a/lib/matplotlib/tri/triplot.py b/lib/matplotlib/tri/triplot.py index 7d47c2b0a058..4dd29753009d 100644 --- a/lib/matplotlib/tri/triplot.py +++ b/lib/matplotlib/tri/triplot.py @@ -1,9 +1,5 @@ -from matplotlib.tri import * # noqa: F401, F403 -from matplotlib import _api +from ._triplot import * # noqa: F401, F403 - -_api.warn_deprecated( - "3.7", - message=f"Importing {__name__} was deprecated in Matplotlib 3.7 and will " - f"be removed two minor releases later. All functionality is " - f"available via the top-level module matplotlib.tri") +raise ValueError(f"Importing {__name__} was deprecated in Matplotlib 3.7 and will " + f"be removed two minor releases later. All functionality is " + f"available via the top-level module matplotlib.tri") \ No newline at end of file diff --git a/lib/matplotlib/tri/trirefine.py b/lib/matplotlib/tri/trirefine.py index 7d47c2b0a058..eebaa440c5e7 100644 --- a/lib/matplotlib/tri/trirefine.py +++ b/lib/matplotlib/tri/trirefine.py @@ -1,9 +1,5 @@ -from matplotlib.tri import * # noqa: F401, F403 -from matplotlib import _api +from ._trirefine import * # noqa: F401, F403 - -_api.warn_deprecated( - "3.7", - message=f"Importing {__name__} was deprecated in Matplotlib 3.7 and will " - f"be removed two minor releases later. All functionality is " - f"available via the top-level module matplotlib.tri") +raise ValueError(f"Importing {__name__} was deprecated in Matplotlib 3.7 and will " + f"be removed two minor releases later. All functionality is " + f"available via the top-level module matplotlib.tri") \ No newline at end of file diff --git a/lib/matplotlib/tri/tritools.py b/lib/matplotlib/tri/tritools.py index 7d47c2b0a058..c5357e87ed45 100644 --- a/lib/matplotlib/tri/tritools.py +++ b/lib/matplotlib/tri/tritools.py @@ -1,9 +1,5 @@ -from matplotlib.tri import * # noqa: F401, F403 -from matplotlib import _api +from ._tritools import * # noqa: F401, F403 - -_api.warn_deprecated( - "3.7", - message=f"Importing {__name__} was deprecated in Matplotlib 3.7 and will " - f"be removed two minor releases later. All functionality is " - f"available via the top-level module matplotlib.tri") +raise ValueError(f"Importing {__name__} was deprecated in Matplotlib 3.7 and will " + f"be removed two minor releases later. All functionality is " + f"available via the top-level module matplotlib.tri") \ No newline at end of file From 9e484651e16419fdce8587c5f4f99fc03fa94fbb Mon Sep 17 00:00:00 2001 From: vigneshvetrivel8 Date: Tue, 26 Sep 2023 13:43:31 +0530 Subject: [PATCH 3/5] updated deprecated api --- doc/api/next_api_changes/removals/00001-ABC.rst | 2 +- lib/matplotlib/tri/triangulation.py | 6 +++--- lib/matplotlib/tri/tricontour.py | 6 +++--- lib/matplotlib/tri/trifinder.py | 6 +++--- lib/matplotlib/tri/triinterpolate.py | 6 +++--- lib/matplotlib/tri/tripcolor.py | 6 +++--- lib/matplotlib/tri/triplot.py | 6 +++--- lib/matplotlib/tri/trirefine.py | 6 +++--- lib/matplotlib/tri/tritools.py | 6 +++--- 9 files changed, 25 insertions(+), 25 deletions(-) diff --git a/doc/api/next_api_changes/removals/00001-ABC.rst b/doc/api/next_api_changes/removals/00001-ABC.rst index 64fbf17dbe6f..a709f10230f3 100644 --- a/doc/api/next_api_changes/removals/00001-ABC.rst +++ b/doc/api/next_api_changes/removals/00001-ABC.rst @@ -1,5 +1,5 @@ _api.warn_deprecated is updated -~~~~~~~~~~~~~~~~~~~~~~~ +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ... In the ``lib/matplotlib/tri/`` directory. diff --git a/lib/matplotlib/tri/triangulation.py b/lib/matplotlib/tri/triangulation.py index 06a4dd96c27f..a133174ae7fe 100644 --- a/lib/matplotlib/tri/triangulation.py +++ b/lib/matplotlib/tri/triangulation.py @@ -1,5 +1,5 @@ from ._triangulation import * # noqa: F401, F403 -raise ValueError(f"Importing {__name__} was deprecated in Matplotlib 3.7 and will " - f"be removed two minor releases later. All functionality is " - f"available via the top-level module matplotlib.tri") \ No newline at end of file +raise ValueError(f"Importing {__name__} was deprecated in Matplotlib 3.7 and will + be removed two minor releases later. All functionality is + available via the top-level module matplotlib.tri") \ No newline at end of file diff --git a/lib/matplotlib/tri/tricontour.py b/lib/matplotlib/tri/tricontour.py index efaa10e7e44b..cead081250de 100644 --- a/lib/matplotlib/tri/tricontour.py +++ b/lib/matplotlib/tri/tricontour.py @@ -1,5 +1,5 @@ from ._tricontour import * # noqa: F401, F403 -raise ValueError(f"Importing {__name__} was deprecated in Matplotlib 3.7 and will " - f"be removed two minor releases later. All functionality is " - f"available via the top-level module matplotlib.tri") +raise ValueError(f"Importing {__name__} was deprecated in Matplotlib 3.7 and will + be removed two minor releases later. All functionality is + available via the top-level module matplotlib.tri") diff --git a/lib/matplotlib/tri/trifinder.py b/lib/matplotlib/tri/trifinder.py index 8c0ef1d7d3b4..6d5094ba6cde 100644 --- a/lib/matplotlib/tri/trifinder.py +++ b/lib/matplotlib/tri/trifinder.py @@ -1,5 +1,5 @@ from ._trifinder import * # noqa: F401, F403 -raise ValueError(f"Importing {__name__} was deprecated in Matplotlib 3.7 and will " - f"be removed two minor releases later. All functionality is " - f"available via the top-level module matplotlib.tri") \ No newline at end of file +raise ValueError(f"Importing {__name__} was deprecated in Matplotlib 3.7 and will + be removed two minor releases later. All functionality is + available via the top-level module matplotlib.tri") \ No newline at end of file diff --git a/lib/matplotlib/tri/triinterpolate.py b/lib/matplotlib/tri/triinterpolate.py index 6ab427d4c6cc..d7eb56536fcf 100644 --- a/lib/matplotlib/tri/triinterpolate.py +++ b/lib/matplotlib/tri/triinterpolate.py @@ -1,5 +1,5 @@ from ._triinterpolate import * # noqa: F401, F403 -raise ValueError(f"Importing {__name__} was deprecated in Matplotlib 3.7 and will " - f"be removed two minor releases later. All functionality is " - f"available via the top-level module matplotlib.tri") \ No newline at end of file +raise ValueError(f"Importing {__name__} was deprecated in Matplotlib 3.7 and will + be removed two minor releases later. All functionality is + available via the top-level module matplotlib.tri") \ No newline at end of file diff --git a/lib/matplotlib/tri/tripcolor.py b/lib/matplotlib/tri/tripcolor.py index a29c818ef0ae..5454de056c5e 100644 --- a/lib/matplotlib/tri/tripcolor.py +++ b/lib/matplotlib/tri/tripcolor.py @@ -1,5 +1,5 @@ from ._tripcolor import * # noqa: F401, F403 -raise ValueError(f"Importing {__name__} was deprecated in Matplotlib 3.7 and will " - f"be removed two minor releases later. All functionality is " - f"available via the top-level module matplotlib.tri") \ No newline at end of file +raise ValueError(f"Importing {__name__} was deprecated in Matplotlib 3.7 and will + be removed two minor releases later. All functionality is + available via the top-level module matplotlib.tri") \ No newline at end of file diff --git a/lib/matplotlib/tri/triplot.py b/lib/matplotlib/tri/triplot.py index 4dd29753009d..2664c595e5df 100644 --- a/lib/matplotlib/tri/triplot.py +++ b/lib/matplotlib/tri/triplot.py @@ -1,5 +1,5 @@ from ._triplot import * # noqa: F401, F403 -raise ValueError(f"Importing {__name__} was deprecated in Matplotlib 3.7 and will " - f"be removed two minor releases later. All functionality is " - f"available via the top-level module matplotlib.tri") \ No newline at end of file +raise ValueError(f"Importing {__name__} was deprecated in Matplotlib 3.7 and will + be removed two minor releases later. All functionality is + available via the top-level module matplotlib.tri") \ No newline at end of file diff --git a/lib/matplotlib/tri/trirefine.py b/lib/matplotlib/tri/trirefine.py index eebaa440c5e7..8f8569599f17 100644 --- a/lib/matplotlib/tri/trirefine.py +++ b/lib/matplotlib/tri/trirefine.py @@ -1,5 +1,5 @@ from ._trirefine import * # noqa: F401, F403 -raise ValueError(f"Importing {__name__} was deprecated in Matplotlib 3.7 and will " - f"be removed two minor releases later. All functionality is " - f"available via the top-level module matplotlib.tri") \ No newline at end of file +raise ValueError(f"Importing {__name__} was deprecated in Matplotlib 3.7 and will + be removed two minor releases later. All functionality is + available via the top-level module matplotlib.tri") \ No newline at end of file diff --git a/lib/matplotlib/tri/tritools.py b/lib/matplotlib/tri/tritools.py index c5357e87ed45..6f8840192171 100644 --- a/lib/matplotlib/tri/tritools.py +++ b/lib/matplotlib/tri/tritools.py @@ -1,5 +1,5 @@ from ._tritools import * # noqa: F401, F403 -raise ValueError(f"Importing {__name__} was deprecated in Matplotlib 3.7 and will " - f"be removed two minor releases later. All functionality is " - f"available via the top-level module matplotlib.tri") \ No newline at end of file +raise ValueError(f"Importing {__name__} was deprecated in Matplotlib 3.7 and will + be removed two minor releases later. All functionality is + available via the top-level module matplotlib.tri") \ No newline at end of file From 75dd150e71e93b4da732fd0a45768475783a0d30 Mon Sep 17 00:00:00 2001 From: vigneshvetrivel8 Date: Tue, 26 Sep 2023 13:45:51 +0530 Subject: [PATCH 4/5] updated deprecated api --- doc/api/next_api_changes/removals/00001-ABC.rst | 3 +-- lib/matplotlib/tri/triangulation.py | 3 ++- lib/matplotlib/tri/tricontour.py | 1 + lib/matplotlib/tri/trifinder.py | 3 ++- lib/matplotlib/tri/triinterpolate.py | 3 ++- lib/matplotlib/tri/tripcolor.py | 3 ++- lib/matplotlib/tri/triplot.py | 3 ++- lib/matplotlib/tri/trirefine.py | 3 ++- lib/matplotlib/tri/tritools.py | 3 ++- 9 files changed, 16 insertions(+), 9 deletions(-) diff --git a/doc/api/next_api_changes/removals/00001-ABC.rst b/doc/api/next_api_changes/removals/00001-ABC.rst index a709f10230f3..390437d2a0dc 100644 --- a/doc/api/next_api_changes/removals/00001-ABC.rst +++ b/doc/api/next_api_changes/removals/00001-ABC.rst @@ -2,5 +2,4 @@ _api.warn_deprecated is updated ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ... In the ``lib/matplotlib/tri/`` directory. - -All files with _api.warn_deprecated is replaced with ValueError. \ No newline at end of file +All files with _api.warn_deprecated is replaced with ValueError. diff --git a/lib/matplotlib/tri/triangulation.py b/lib/matplotlib/tri/triangulation.py index a133174ae7fe..0b7dedee10bb 100644 --- a/lib/matplotlib/tri/triangulation.py +++ b/lib/matplotlib/tri/triangulation.py @@ -2,4 +2,5 @@ raise ValueError(f"Importing {__name__} was deprecated in Matplotlib 3.7 and will be removed two minor releases later. All functionality is - available via the top-level module matplotlib.tri") \ No newline at end of file + available via the top-level module matplotlib.tri") + \ No newline at end of file diff --git a/lib/matplotlib/tri/tricontour.py b/lib/matplotlib/tri/tricontour.py index cead081250de..611f0cbbcd05 100644 --- a/lib/matplotlib/tri/tricontour.py +++ b/lib/matplotlib/tri/tricontour.py @@ -3,3 +3,4 @@ raise ValueError(f"Importing {__name__} was deprecated in Matplotlib 3.7 and will be removed two minor releases later. All functionality is available via the top-level module matplotlib.tri") + \ No newline at end of file diff --git a/lib/matplotlib/tri/trifinder.py b/lib/matplotlib/tri/trifinder.py index 6d5094ba6cde..e4cf945eec92 100644 --- a/lib/matplotlib/tri/trifinder.py +++ b/lib/matplotlib/tri/trifinder.py @@ -2,4 +2,5 @@ raise ValueError(f"Importing {__name__} was deprecated in Matplotlib 3.7 and will be removed two minor releases later. All functionality is - available via the top-level module matplotlib.tri") \ No newline at end of file + available via the top-level module matplotlib.tri") + \ No newline at end of file diff --git a/lib/matplotlib/tri/triinterpolate.py b/lib/matplotlib/tri/triinterpolate.py index d7eb56536fcf..e8e12a024c7f 100644 --- a/lib/matplotlib/tri/triinterpolate.py +++ b/lib/matplotlib/tri/triinterpolate.py @@ -2,4 +2,5 @@ raise ValueError(f"Importing {__name__} was deprecated in Matplotlib 3.7 and will be removed two minor releases later. All functionality is - available via the top-level module matplotlib.tri") \ No newline at end of file + available via the top-level module matplotlib.tri") + \ No newline at end of file diff --git a/lib/matplotlib/tri/tripcolor.py b/lib/matplotlib/tri/tripcolor.py index 5454de056c5e..bb443dbd6faa 100644 --- a/lib/matplotlib/tri/tripcolor.py +++ b/lib/matplotlib/tri/tripcolor.py @@ -2,4 +2,5 @@ raise ValueError(f"Importing {__name__} was deprecated in Matplotlib 3.7 and will be removed two minor releases later. All functionality is - available via the top-level module matplotlib.tri") \ No newline at end of file + available via the top-level module matplotlib.tri") + \ No newline at end of file diff --git a/lib/matplotlib/tri/triplot.py b/lib/matplotlib/tri/triplot.py index 2664c595e5df..493a865069ed 100644 --- a/lib/matplotlib/tri/triplot.py +++ b/lib/matplotlib/tri/triplot.py @@ -2,4 +2,5 @@ raise ValueError(f"Importing {__name__} was deprecated in Matplotlib 3.7 and will be removed two minor releases later. All functionality is - available via the top-level module matplotlib.tri") \ No newline at end of file + available via the top-level module matplotlib.tri") + \ No newline at end of file diff --git a/lib/matplotlib/tri/trirefine.py b/lib/matplotlib/tri/trirefine.py index 8f8569599f17..db3bf6aa5e64 100644 --- a/lib/matplotlib/tri/trirefine.py +++ b/lib/matplotlib/tri/trirefine.py @@ -2,4 +2,5 @@ raise ValueError(f"Importing {__name__} was deprecated in Matplotlib 3.7 and will be removed two minor releases later. All functionality is - available via the top-level module matplotlib.tri") \ No newline at end of file + available via the top-level module matplotlib.tri") + \ No newline at end of file diff --git a/lib/matplotlib/tri/tritools.py b/lib/matplotlib/tri/tritools.py index 6f8840192171..c49d7882bf53 100644 --- a/lib/matplotlib/tri/tritools.py +++ b/lib/matplotlib/tri/tritools.py @@ -2,4 +2,5 @@ raise ValueError(f"Importing {__name__} was deprecated in Matplotlib 3.7 and will be removed two minor releases later. All functionality is - available via the top-level module matplotlib.tri") \ No newline at end of file + available via the top-level module matplotlib.tri") + \ No newline at end of file From 7a7084a47258d26ad94b6541f91af43d156ac0a6 Mon Sep 17 00:00:00 2001 From: vigneshvetrivel8 Date: Tue, 26 Sep 2023 13:58:15 +0530 Subject: [PATCH 5/5] updated deprecated api --- doc/api/next_api_changes/removals/00001-ABC.rst | 3 ++- lib/matplotlib/tri/triangulation.py | 5 +---- lib/matplotlib/tri/tricontour.py | 5 +---- lib/matplotlib/tri/trifinder.py | 5 +---- lib/matplotlib/tri/triinterpolate.py | 5 +---- lib/matplotlib/tri/tripcolor.py | 5 +---- lib/matplotlib/tri/triplot.py | 5 +---- lib/matplotlib/tri/trirefine.py | 5 +---- lib/matplotlib/tri/tritools.py | 5 +---- 9 files changed, 10 insertions(+), 33 deletions(-) diff --git a/doc/api/next_api_changes/removals/00001-ABC.rst b/doc/api/next_api_changes/removals/00001-ABC.rst index 390437d2a0dc..a709f10230f3 100644 --- a/doc/api/next_api_changes/removals/00001-ABC.rst +++ b/doc/api/next_api_changes/removals/00001-ABC.rst @@ -2,4 +2,5 @@ _api.warn_deprecated is updated ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ... In the ``lib/matplotlib/tri/`` directory. -All files with _api.warn_deprecated is replaced with ValueError. + +All files with _api.warn_deprecated is replaced with ValueError. \ No newline at end of file diff --git a/lib/matplotlib/tri/triangulation.py b/lib/matplotlib/tri/triangulation.py index 0b7dedee10bb..a64d71e76be8 100644 --- a/lib/matplotlib/tri/triangulation.py +++ b/lib/matplotlib/tri/triangulation.py @@ -1,6 +1,3 @@ from ._triangulation import * # noqa: F401, F403 -raise ValueError(f"Importing {__name__} was deprecated in Matplotlib 3.7 and will - be removed two minor releases later. All functionality is - available via the top-level module matplotlib.tri") - \ No newline at end of file +raise ValueError(f"Importing {__name__} was deprecated in Matplotlib 3.7 and will be removed two minor releases later. All functionality is available via the top-level module matplotlib.tri") \ No newline at end of file diff --git a/lib/matplotlib/tri/tricontour.py b/lib/matplotlib/tri/tricontour.py index 611f0cbbcd05..59dcd75839e6 100644 --- a/lib/matplotlib/tri/tricontour.py +++ b/lib/matplotlib/tri/tricontour.py @@ -1,6 +1,3 @@ from ._tricontour import * # noqa: F401, F403 -raise ValueError(f"Importing {__name__} was deprecated in Matplotlib 3.7 and will - be removed two minor releases later. All functionality is - available via the top-level module matplotlib.tri") - \ No newline at end of file +raise ValueError(f"Importing {__name__} was deprecated in Matplotlib 3.7 and will be removed two minor releases later. All functionality is available via the top-level module matplotlib.tri") \ No newline at end of file diff --git a/lib/matplotlib/tri/trifinder.py b/lib/matplotlib/tri/trifinder.py index e4cf945eec92..ac02280546db 100644 --- a/lib/matplotlib/tri/trifinder.py +++ b/lib/matplotlib/tri/trifinder.py @@ -1,6 +1,3 @@ from ._trifinder import * # noqa: F401, F403 -raise ValueError(f"Importing {__name__} was deprecated in Matplotlib 3.7 and will - be removed two minor releases later. All functionality is - available via the top-level module matplotlib.tri") - \ No newline at end of file +raise ValueError(f"Importing {__name__} was deprecated in Matplotlib 3.7 and will be removed two minor releases later. All functionality is available via the top-level module matplotlib.tri") \ No newline at end of file diff --git a/lib/matplotlib/tri/triinterpolate.py b/lib/matplotlib/tri/triinterpolate.py index e8e12a024c7f..2b1a55c73e76 100644 --- a/lib/matplotlib/tri/triinterpolate.py +++ b/lib/matplotlib/tri/triinterpolate.py @@ -1,6 +1,3 @@ from ._triinterpolate import * # noqa: F401, F403 -raise ValueError(f"Importing {__name__} was deprecated in Matplotlib 3.7 and will - be removed two minor releases later. All functionality is - available via the top-level module matplotlib.tri") - \ No newline at end of file +raise ValueError(f"Importing {__name__} was deprecated in Matplotlib 3.7 and will be removed two minor releases later. All functionality is available via the top-level module matplotlib.tri") \ No newline at end of file diff --git a/lib/matplotlib/tri/tripcolor.py b/lib/matplotlib/tri/tripcolor.py index bb443dbd6faa..84deb1df686b 100644 --- a/lib/matplotlib/tri/tripcolor.py +++ b/lib/matplotlib/tri/tripcolor.py @@ -1,6 +1,3 @@ from ._tripcolor import * # noqa: F401, F403 -raise ValueError(f"Importing {__name__} was deprecated in Matplotlib 3.7 and will - be removed two minor releases later. All functionality is - available via the top-level module matplotlib.tri") - \ No newline at end of file +raise ValueError(f"Importing {__name__} was deprecated in Matplotlib 3.7 and will be removed two minor releases later. All functionality is available via the top-level module matplotlib.tri") \ No newline at end of file diff --git a/lib/matplotlib/tri/triplot.py b/lib/matplotlib/tri/triplot.py index 493a865069ed..5104a3c3b3a3 100644 --- a/lib/matplotlib/tri/triplot.py +++ b/lib/matplotlib/tri/triplot.py @@ -1,6 +1,3 @@ from ._triplot import * # noqa: F401, F403 -raise ValueError(f"Importing {__name__} was deprecated in Matplotlib 3.7 and will - be removed two minor releases later. All functionality is - available via the top-level module matplotlib.tri") - \ No newline at end of file +raise ValueError(f"Importing {__name__} was deprecated in Matplotlib 3.7 and will be removed two minor releases later. All functionality is available via the top-level module matplotlib.tri") \ No newline at end of file diff --git a/lib/matplotlib/tri/trirefine.py b/lib/matplotlib/tri/trirefine.py index db3bf6aa5e64..4cac7b49412a 100644 --- a/lib/matplotlib/tri/trirefine.py +++ b/lib/matplotlib/tri/trirefine.py @@ -1,6 +1,3 @@ from ._trirefine import * # noqa: F401, F403 -raise ValueError(f"Importing {__name__} was deprecated in Matplotlib 3.7 and will - be removed two minor releases later. All functionality is - available via the top-level module matplotlib.tri") - \ No newline at end of file +raise ValueError(f"Importing {__name__} was deprecated in Matplotlib 3.7 and will be removed two minor releases later. All functionality is available via the top-level module matplotlib.tri") \ No newline at end of file diff --git a/lib/matplotlib/tri/tritools.py b/lib/matplotlib/tri/tritools.py index c49d7882bf53..fb57bb5bf193 100644 --- a/lib/matplotlib/tri/tritools.py +++ b/lib/matplotlib/tri/tritools.py @@ -1,6 +1,3 @@ from ._tritools import * # noqa: F401, F403 -raise ValueError(f"Importing {__name__} was deprecated in Matplotlib 3.7 and will - be removed two minor releases later. All functionality is - available via the top-level module matplotlib.tri") - \ No newline at end of file +raise ValueError(f"Importing {__name__} was deprecated in Matplotlib 3.7 and will be removed two minor releases later. All functionality is available via the top-level module matplotlib.tri") \ No newline at end of file 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