From 731f6c863b9e280d55d809a2d9a8435f468e9865 Mon Sep 17 00:00:00 2001 From: Michael Droettboom Date: Fri, 27 Sep 2013 09:59:48 -0400 Subject: [PATCH] Fix #2425: setters without arguments should not be added to the list of parameters --- lib/matplotlib/artist.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/matplotlib/artist.py b/lib/matplotlib/artist.py index 2e06d200bc13..afb950882b4a 100644 --- a/lib/matplotlib/artist.py +++ b/lib/matplotlib/artist.py @@ -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 @@ -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