-
Notifications
You must be signed in to change notification settings - Fork 972
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
uv-pep440: DRY up VersionSmall implementation
This PR simplifies the VersionSmall implementation a bit by utilizing more constants. That is, if the bit-level format changes, *most* of those changes should be implementable by just changing the constants. Previously, you would need to audit and tweak the code as well. (The exception here is `push_release`. If the release segment bit format is changed, then that function will need to be tweaked. I didn't think it was worth over-complicating things to make its implementation more general.)
- Loading branch information
1 parent
23ea5df
commit 26c9b4c
Showing
1 changed file
with
52 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters