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:
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."
release = v.release