Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c60622a

Browse files
wemi3QuLogicoscargus
authored
26865 Removed deprecations from quiver.py (#26918)
* 26865 Removed deprecations from quiver.py * Added rst file * updated quiver.pyi * removed extra lines * removed code stubs, edited rst file * Update lib/matplotlib/quiver.py Co-authored-by: Elliott Sales de Andrade <[email protected]> * Update doc/api/next_api_changes/removals/26918-EW.rst Co-authored-by: Oscar Gustafsson <[email protected]> --------- Co-authored-by: Elliott Sales de Andrade <[email protected]> Co-authored-by: Oscar Gustafsson <[email protected]>
1 parent 870293a commit c60622a

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
``Quiver.quiver_doc`` and ``Barbs.barbs_doc``
2+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3+
... are removed. These are the doc-string and should not be accessible as a named class member.

lib/matplotlib/quiver.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -721,8 +721,6 @@ def _h_arrows(self, length):
721721
# Mask handling is deferred to the caller, _make_verts.
722722
return X, Y
723723

724-
quiver_doc = _api.deprecated("3.7")(property(lambda self: _quiver_doc))
725-
726724

727725
_barbs_doc = r"""
728726
Plot a 2D field of barbs.
@@ -1177,5 +1175,3 @@ def set_offsets(self, xy):
11771175
xy = np.column_stack((x, y))
11781176
super().set_offsets(xy)
11791177
self.stale = True
1180-
1181-
barbs_doc = _api.deprecated("3.7")(property(lambda self: _barbs_doc))

lib/matplotlib/quiver.pyi

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,6 @@ class Quiver(mcollections.PolyCollection):
125125
def set_UVC(
126126
self, U: ArrayLike, V: ArrayLike, C: ArrayLike | None = ...
127127
) -> None: ...
128-
@property
129-
def quiver_doc(self) -> str: ...
130128

131129
class Barbs(mcollections.PolyCollection):
132130
sizes: dict[str, float]
@@ -183,5 +181,3 @@ class Barbs(mcollections.PolyCollection):
183181
self, U: ArrayLike, V: ArrayLike, C: ArrayLike | None = ...
184182
) -> None: ...
185183
def set_offsets(self, xy: ArrayLike) -> None: ...
186-
@property
187-
def barbs_doc(self) -> str: ...

0 commit comments

Comments
 (0)