Skip to content

Commit 4cd733c

Browse files
committed
fix incompatible return
1 parent 4a89d03 commit 4cd733c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

numpydoc/validate.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -300,13 +300,13 @@ def signature_parameters(self):
300300
self.name.split(".")[-1] in self.obj._accessors
301301
):
302302
# accessor classes have a signature but don't want to show this
303-
return tuple()
303+
return dict()
304304
try:
305305
sig = inspect.signature(self.obj)
306306
except (TypeError, ValueError):
307307
# Some objects, mainly in C extensions do not support introspection
308308
# of the signature
309-
return tuple()
309+
return dict()
310310
params = dict(sig.parameters)
311311

312312
if params:

0 commit comments

Comments
 (0)