Skip to content
This repository has been archived by the owner on Jul 5, 2023. It is now read-only.

mypy --fast-parser option broken with 1.0.0 #31

Closed
sseg opened this issue Feb 16, 2017 · 4 comments
Closed

mypy --fast-parser option broken with 1.0.0 #31

sseg opened this issue Feb 16, 2017 · 4 comments

Comments

@sseg
Copy link

sseg commented Feb 16, 2017

Running in a Python 3.6.0 virtual environment, running mypy with --fast-parser option does not work with typed-ast==1.0.0:

$ pip freeze | grep 'mypy\|typed-ast'
mypy-lang==0.4.6
typed-ast==1.0.0

$ mypy --fast-parser .
You must install the typed_ast package before you can run mypy with `--fast-parser`.
You can do this with `python3 -m pip install typed-ast`.

The same run works with typed-ast==0.6.3

@ethanhs
Copy link
Contributor

ethanhs commented Feb 16, 2017

mypy has moved to the mypy package name, and is at version 0.471, if you update mypy to 0.471, does that fix the issue?

@gvanrossum
Copy link
Member

gvanrossum commented Feb 16, 2017 via email

@ddfisher
Copy link
Collaborator

This is expected -- typed_ast made some backwards incompatible changes when updating to 1.0.

To fix, use mypy (no longer mypy-lang) version 0.471, which has an upper bound on the typed-ast version it installs. The next release of mypy will be out in a couple weeks and will be updated to work with typed-ast 1.0.

@sseg
Copy link
Author

sseg commented Feb 18, 2017

Resolved with the mypy package for me. Thanks all.

Leaving a link here to the blog post explaining the changes for anyone else coming across this: http://mypy-lang.blogspot.com/2017/01/mypy-0470-released.html

tbbharaj pushed a commit to tbbharaj/typed_ast that referenced this issue Dec 6, 2021
Allow bytearray arguments, and return bytearrays for block functions on Python 3
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants