1
1
Fork 0
mirror of https://github.com/pypa/pip synced 2023-12-13 21:30:23 +01:00

Make mypy happy with beta release automation

Co-Authored-By: Pradyun Gedam <pradyunsg@gmail.com>
This commit is contained in:
Nguyễn Gia Phong 2020-04-26 16:14:43 +07:00
parent 6a7bf94776
commit ff869e0c15
2 changed files with 1 additions and 1 deletions

View file

@ -20,7 +20,7 @@ def is_this_a_good_version_number(string: str) -> Optional[str]:
if v.dev: if v.dev:
return "No development releases on PyPI. What are you even thinking?" return "No development releases on PyPI. What are you even thinking?"
if v.is_prerelease and v.pre[0] != "b": if v.pre and v.pre[0] != "b":
return "Only beta releases are allowed. No alphas." return "Only beta releases are allowed. No alphas."
release = v.release release = v.release