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

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

Closed

Description

@sseg

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

Activity

  1. emmatyping commented on Feb 16, 2017

    @emmatyping
    Member

    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?

  2. gvanrossum commented on Feb 16, 2017

    @gvanrossum
    Member
  3. ddfisher commented on Feb 17, 2017

    @ddfisher
    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.

  4. sseg commented on Feb 18, 2017

    @sseg
    Author

    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

  5. added a commit that references this issue on Dec 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions