Skip to content

Commit

Permalink
Fix #2425: setters without arguments should not be added to the list of
Browse files Browse the repository at this point in the history
parameters
  • Loading branch information
mdboom committed Sep 27, 2013
1 parent e4ec9d5 commit 731f6c8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/matplotlib/artist.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from __future__ import division, print_function
import re
import warnings
import inspect
import matplotlib
import matplotlib.cbook as cbook
from matplotlib import docstring, rcParams
Expand Down Expand Up @@ -948,6 +949,8 @@ def _get_setters_and_targets(self):
o = getattr(self.o, name)
if not callable(o):
continue
if len(inspect.getargspec(o)[0]) < 2:
continue
func = o
if self.is_alias(func):
continue
Expand Down

0 comments on commit 731f6c8

Please sign in to comment.