We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ef46749 commit 2dc3e51Copy full SHA for 2dc3e51
packages/python/plotly/plotly/express/_doc.py
@@ -1,6 +1,10 @@
1
import inspect
2
from textwrap import TextWrapper
3
4
+try:
5
+ getfullargspec = inspect.getfullargspec
6
+except AttributeError: # python 2
7
+ getfullargspec = inspect.getargspec
8
9
# TODO contents of columns
10
# TODO explain categorical
@@ -505,7 +509,7 @@
505
509
def make_docstring(fn, override_dict={}):
506
510
tw = TextWrapper(width=75, initial_indent=" ", subsequent_indent=" ")
507
511
result = (fn.__doc__ or "") + "\nParameters\n----------\n"
508
- for param in inspect.getargspec(fn)[0]:
512
+ for param in getfullargspec(fn)[0]:
513
if override_dict.get(param):
514
param_doc = override_dict[param]
515
else:
0 commit comments