Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Last release of mypy that supports python3.4 is broken #9641

Closed
hackaugusto opened this issue Oct 26, 2020 · 2 comments
Closed

Last release of mypy that supports python3.4 is broken #9641

hackaugusto opened this issue Oct 26, 2020 · 2 comments
Labels
bug mypy got something wrong

Comments

@hackaugusto
Copy link
Contributor

I totally understand if no package would be release just to make pip install mypy work. Just in case this issue is found by somebody else, the blog documents that support was dropped at 0.700, pip install mypy==0.670 is the last working release of mypy for py3.4

Bug Report

As the title says

To Reproduce

cd /tmp
python3.4 -m venv test
source ./test/bin/activate
pip install mypy # this installs mypy-0.720
mypy # raises the exception bellow
Traceback (most recent call last):
  File "/tmp/test/bin/mypy", line 7, in <module>
    from mypy.__main__ import console_entry
  File "/tmp/test/lib64/python3.4/site-packages/mypy/__main__.py", line 4, in <module>
    from mypy.main import main
  File "/tmp/test/lib64/python3.4/site-packages/mypy/main.py", line 12, in <module>
    from mypy import build
  File "/tmp/test/lib64/python3.4/site-packages/mypy/build.py", line 56, in <module>
    from mypy.plugins.default import DefaultPlugin
  File "/tmp/test/lib64/python3.4/site-packages/mypy/plugins/default.py", line 266
    return UnionType.make_simplified_union([*value_types, ctx.arg_types[1][0]])
                                                       ^
SyntaxError: can use starred expression only as assignment target

Expected Behavior

It would just be nice to be able to install mypy on an old venv.

@hackaugusto hackaugusto added the bug mypy got something wrong label Oct 26, 2020
@astrojuanlu
Copy link
Contributor

Duplicate: #7221

@JelleZijlstra
Copy link
Member

Python 3.4's end of life was in March of 2019. We're not going to fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug mypy got something wrong
Projects
None yet
Development

No branches or pull requests

3 participants