From cb22826d74a5340762d6000974366f6fb2642bb3 Mon Sep 17 00:00:00 2001 From: Liam Connors Date: Tue, 20 May 2025 11:31:03 -0400 Subject: [PATCH] Change docstring to not break on hyphens --- plotly/express/_doc.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/plotly/express/_doc.py b/plotly/express/_doc.py index 8754e5265b3..59faac4c0b3 100644 --- a/plotly/express/_doc.py +++ b/plotly/express/_doc.py @@ -612,7 +612,12 @@ def make_docstring(fn, override_dict=None, append_dict=None): override_dict = {} if override_dict is None else override_dict append_dict = {} if append_dict is None else append_dict - tw = TextWrapper(width=75, initial_indent=" ", subsequent_indent=" ") + tw = TextWrapper( + width=75, + initial_indent=" ", + subsequent_indent=" ", + break_on_hyphens=False, + ) result = (fn.__doc__ or "") + "\nParameters\n----------\n" for param in getfullargspec(fn)[0]: if override_dict.get(param):