10000 Merge pull request #24688 from oscargus/quiverdoc · matplotlib/matplotlib@cc20d3f · GitHub
[go: up one dir, main page]

Skip to content

Commit cc20d3f

Browse files
authored
Merge pull request #24688 from oscargus/quiverdoc
Deprecate quiver_doc and barbs_doc class members
2 parents 6649511 + 9d119f7 commit cc20d3f

File tree

2 files changed

+7
-2
lines changed

2 files changed

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

lib/matplotlib/quiver.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -722,7 +722,7 @@ def _h_arrows(self, length):
722722
# Mask handling is deferred to the caller, _make_verts.
723723
return X, Y
724724

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

727727

728728
_barbs_doc = r"""
@@ -1179,4 +1179,4 @@ def set_offsets(self, xy):
11791179
super().set_offsets(xy)
11801180
self.stale = True
11811181

1182-
barbs_doc = _barbs_doc
1182+
barbs_doc = _api.deprecated("3.7")(property(lambda self: _barbs_doc))

0 commit comments

Comments
 (0)
0