Merge pull request #8143 from McSinyx/mypy-auto-pre

This commit is contained in:
Pradyun Gedam 2020-05-07 18:49:48 +05:30 committed by GitHub
commit b0a3881828
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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