KEMBAR78
Refuse to run under 3.5.0 or anything before 3.4 by gvanrossum · Pull Request #4721 · python/mypy · GitHub
Skip to content

Conversation

@gvanrossum
Copy link
Member

Fixes #4714

Copy link
Member

@emmatyping emmatyping left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Just a couple of nits.

mypy/main.py Outdated
if vi[:2] < (3, 4):
sys.exit("Running mypy with Python 3.3 or lower is not supported; please upgrade")
if vi[:3] == (3, 5, 0):
sys.exit("Running mypy with Python 3.5.0 is not supported; please upgrade")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it is worth it to specify that upgrading to a later version of 3.5 is possible. It isn't hard for me to imagine someone seeing this and thinking that they must use 3.6.x or newer to use mypy, which is not the impression we want. Perhaps ... please upgrade to Python 3.5.1 or newer?

mypy/main.py Outdated
be used.
"""
# Check for known bad Python versions.
vi = tuple(sys.version_info)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sys.version_info is already a tuple, so I think the tuple call is unnecessary.

@gvanrossum
Copy link
Member Author

gvanrossum commented Mar 12, 2018 via email

Copy link
Member

@emmatyping emmatyping left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great!

@gvanrossum gvanrossum merged commit 6f6297d into python:master Mar 13, 2018
@gvanrossum gvanrossum deleted the stop-bad-versions branch March 13, 2018 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants