Skip to content

Remove unnecessary if statement in Specifier.prereleases#1074

Merged
notatallshaw merged 1 commit intopypa:mainfrom
notatallshaw:remove-undeeded-if-statement-in-`Specifier.prereleases`
Jan 25, 2026
Merged

Remove unnecessary if statement in Specifier.prereleases#1074
notatallshaw merged 1 commit intopypa:mainfrom
notatallshaw:remove-undeeded-if-statement-in-`Specifier.prereleases`

Conversation

@notatallshaw
Copy link
Copy Markdown
Member

Apologies for these very small PRs, I keep noticing little things that are unneeded.

Copy link
Copy Markdown
Contributor

@henryiii henryiii left a comment

Choose a reason for hiding this comment

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

I'm a little surprised there's not a Ruff check for this.

@notatallshaw notatallshaw merged commit 7c03071 into pypa:main Jan 25, 2026
44 checks passed
@notatallshaw
Copy link
Copy Markdown
Member Author

It requires type information to safely advise, perhaps ty or ruff with information from ty will add a rule for this in the future.

This was referenced Apr 13, 2026
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.

2 participants