Skip to content

Commit 51b9376

Browse files
committed
added diff error message for 3+ conflicintg formatters
1 parent 1f6e1bf commit 51b9376

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

pydocstringformatter/_utils/issue_template.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ def create_gh_issue_template(
2222
msg = f"""
2323
Conflicting formatters: {", ".join(formatters)}
2424
"""
25-
diff = None
25+
diff = "Diff too intricate to compute for this"
26+
diff += f" number of formatters ({len(formatter_names)})"
2627
else:
2728
if len(formatter_names) == 2:
2829
msg = f"""

tests/test_conflicting_formatters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def cleanup() -> None:
4646
test_utils.AddBFormatter(),
4747
test_utils.MakeAFormatter(),
4848
],
49-
["Conflicting formatters:"],
49+
["Conflicting formatters:", "Diff too intricate to compute"],
5050
),
5151
],
5252
indirect=["patched_run"],

0 commit comments

Comments
 (0)