8000 Add deprecation messages for unused kwargs in FancyArrowPatch · matplotlib/matplotlib@2cdb484 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2cdb484

Browse files
committed
Add deprecation messages for unused kwargs in FancyArrowPatch
Fix variable name
1 parent 51e4944 commit 2cdb484

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

lib/matplotlib/patches.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4060,6 +4060,20 @@ def __init__(self, posA=None, posB=None,
40604060
Valid kwargs are:
40614061
%(Patch)s
40624062
"""
4063+
if arrow_transmuter is not None:
4064+
cbook.warn_deprecated(
4065+
3.0,
4066+
message=('The "arrow_transmuter" keyword argument is not used,'
4067+
' and will be removed in Matplotlib 3.1'),
4068+
name='arrow_transmuter',
4069+
obj_type='keyword argument')
4070+
if connector is not None:
4071+
cbook.warn_deprecated(
4072+
3.0,
4073+
message=('The "connector" keyword argument is not used,'
4074+
' and will be removed in Matplotlib 3.1'),
4075+
name='connector',
4076+
obj_type='keyword argument')
40634077
Patch.__init__(self, **kwargs)
40644078

40654079
if posA is not None and posB is not None and path is None:

0 commit comments

Comments
 (0)
0