1
1
Fork 0
mirror of https://github.com/pypa/pip synced 2023-12-13 21:30:23 +01:00
This commit is contained in:
J. Nick Koston 2023-10-04 14:54:41 -05:00
parent 48212e8639
commit 08526b8524
No known key found for this signature in database

View file

@ -180,7 +180,7 @@ class _IndividualSpecifier(BaseSpecifier):
# Determine if we should be supporting prereleases in this specifier
# or not, if we do not support prereleases than we can short circuit
# logic if this version is a prereleases.
if normalized_item.is_prerelease and not prereleases:
if not prereleases and normalized_item.is_prerelease:
return False
# Actually do the comparison to determine if this item is contained