Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion misc/generate_changelog.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def format_changelog_entry(c: CommitInfo) -> str:
s += f" (#{c.pr_number})"
s += f" ({c.author})"
"""
s = f" * {c.title} ({c.author}"
s = f" * {c.title.removesuffix(".")} ({c.author}"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
s = f" * {c.title.removesuffix(".")} ({c.author}"
s = f" * {c.title.removesuffix('.')} ({c.author}"

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I already had a local commit to fix this by breaking it out into a separate variable, but I logged off before remembering to push it, haha. I'm opting to keep that approach for the slight readability advantage.

if c.pr_number:
s += f", PR [{c.pr_number}](https://github.com/python/mypy/pull/{c.pr_number})"
s += ")"
Expand Down
Loading