This commit is contained in:
Charlie Marsh 2024-08-30 19:45:33 -04:00 committed by GitHub
parent b441678cf6
commit 83467f0a51
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 6 additions and 6 deletions

View file

@ -18,8 +18,8 @@ assert not VersionSpecifier(">=1.1").contains(Version("1.1a1"))
assert Version("2.0") in VersionSpecifier("==2")
```
Unlike [pypa/packaging](https://github.com/pypa/packaging), this library always matches preleases.
To only match final releases, filter with `.any_prelease()` beforehand.
Unlike [pypa/packaging](https://github.com/pypa/packaging), this library always matches prereleases.
To only match final releases, filter with `.any_prerelease()` beforehand.
PEP 440 has a lot of unintuitive features, including: