Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 731f6c8

Browse filesBrowse files
committed
Fix #2425: setters without arguments should not be added to the list of
parameters
1 parent e4ec9d5 commit 731f6c8
Copy full SHA for 731f6c8

File tree

Expand file treeCollapse file tree

1 file changed

+3
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-0
lines changed

‎lib/matplotlib/artist.py

Copy file name to clipboardExpand all lines: lib/matplotlib/artist.py
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from __future__ import division, print_function
22
import re
33
import warnings
4+
import inspect
45
import matplotlib
56
import matplotlib.cbook as cbook
67
from matplotlib import docstring, rcParams
@@ -948,6 +949,8 @@ def _get_setters_and_targets(self):
948949
o = getattr(self.o, name)
949950
if not callable(o):
950951
continue
952+
if len(inspect.getargspec(o)[0]) < 2:
953+
continue
951954
func = o
952955
if self.is_alias(func):
953956
continue

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.