Skip to content

Commit

Permalink
Fix prerelease detection for > and <
Browse files Browse the repository at this point in the history
  • Loading branch information
notatallshaw committed Apr 13, 2024
1 parent 32deafe commit e78e703
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/packaging/specifiers.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ def prereleases(self) -> bool:
# operators, and if they are if they are including an explicit
# prerelease.
operator, version = self._spec
if operator in ["==", ">=", "<=", "~=", "==="]:
if operator in ["==", ">=", "<=", "~=", "===", ">", "<"]:
# The == specifier can include a trailing .*, if it does we
# want to remove before parsing.
if operator == "==" and version.endswith(".*"):
Expand Down

0 comments on commit e78e703

Please sign in to comment.