Skip to content

Conversation

@wesleywright
Copy link
Collaborator

Manually removing the periods caused a small amount of busy work in the 1.15 release. It's easy enough to tweak the script, so I went ahead and added a removesuffix call.

@wesleywright wesleywright requested a review from JukkaL February 4, 2025 15:31
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.

@JukkaL JukkaL merged commit 75a4bc4 into python:master Feb 5, 2025
12 checks passed
x612skm pushed a commit to x612skm/mypy-dev that referenced this pull request Feb 24, 2025
…ython#18598)

Manually removing the periods caused a small amount of busy work in the
1.15 release. It's easy enough to tweak the script, so I went ahead and
added a `removesuffix` call.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants