Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove extra period in deprecation message #10264

Merged
merged 1 commit into from
Aug 6, 2021

Conversation

aphedges
Copy link
Contributor

@aphedges aphedges commented Aug 3, 2021

The deprecate() method automatically puts a period after replacement, so including one in replacement is redundant. Before this change, the message contains the following text:

A possible replacement is replacing the constraint with a requirement..

Copy link
Member

@uranusjr uranusjr left a comment

Choose a reason for hiding this comment

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

(Not related to this PR, just wondering whether we can better prevent this error in the future.)

Since reason should be an entire sentence, it could be bit awkward to get the formatting right. Maybe we should refactor the formatting logic in deprecated a bit to make the string input more straightforward.

@uranusjr uranusjr added this to the 21.2.3 milestone Aug 3, 2021
@pradyunsg pradyunsg merged commit 69fcae5 into pypa:main Aug 6, 2021
@uranusjr uranusjr mentioned this pull request Aug 6, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants