We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4ca1aa3 commit fadf8d4Copy full SHA for fadf8d4
packages/python/plotly/plotly/express/_doc.py
@@ -1,5 +1,5 @@
1
import inspect
2
-from textwrap import fill, indent
+from textwrap import TextWrapper
3
4
5
# TODO contents of columns
@@ -437,11 +437,12 @@
437
438
439
def make_docstring(fn):
440
+ tw = TextWrapper(width=79, initial_indent=" ", subsequent_indent=" ")
441
result = (fn.__doc__ or "") + "\nParameters\n----------\n"
442
for param in inspect.getargspec(fn)[0]:
443
param_desc_list = docs[param][1:]
444
param_desc = (
- indent(fill(" ".join(param_desc_list or "")), " ")
445
+ tw.fill(" ".join(param_desc_list or ""))
446
if param in docs
447
else "(documentation missing from map)"
448
)
0 commit comments