We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 57788a4 commit ab7aa1eCopy full SHA for ab7aa1e
pydocstringformatter/formatting/formatter.py
@@ -86,6 +86,8 @@ class FinalPeriodFormatter(SummaryFormatter):
86
def _treat_summary(self, summary: str, indent_length: int) -> str:
87
"""Add a period to the end of single-line docstrings and summaries."""
88
if summary[-1] in self.END_OF_SENTENCE_PUNCTUATION:
89
+ if summary[-1] == "?":
90
+ return summary + "."
91
return summary
92
93
# If second line is one recurring character we're dealing with a rst title
0 commit comments