You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Address PR review on prerelease parsing and upper bounds
Accept every prerelease spelling consistently. The parser had separate
branches for the dotted `sys.version_info` form and the compact form, so
word aliases without dots such as `3.14.0alpha1` were rejected even
though the previous PEP 440-based matching accepted them. One alternation
now covers all spellings with optional `.`, `-`, or `_` separators, which
also removes the duplicated level and serial capture groups.
Encode the exclusive upper bound prerelease rule per clause. Prerelease
admission was applied to the specifier as a whole, so `3.14.0rc1`
satisfied `>=3.13.0rc1,<3.14` because another clause named a prerelease.
An exclusive bound now rejects prereleases of its own release, while
`<3.14.0rc2` still admits them.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 6444890d-5c9c-4e8e-82b3-37a157ead632
0 commit comments