Python 3.9.8 fails using Black and importing `typed_ast.ast3`

We Are Going To Discuss About Python 3.9.8 fails using Black and importing `typed_ast.ast3`. So lets Start this Python Article.

Python 3.9.8 fails using Black and importing `typed_ast.ast3`

  1. How to solve Python 3.9.8 fails using Black and importing `typed_ast.ast3`

    The initial error was a failing Python Black pipeline. Black failed because it was pinned to an older version which now fails with Python 3.9.8.
    Updating Black to the latest version, 21.10b0, fixed the error for me.
    See also typed_ast issue #169:
    For others who may find this in a search, I ran into this problem via
    black because I had black pinned to an older version. The current
    version of black appears to no longer use typed-ast and thus won't
    encounter this issue.
    Using the latest typed-ast version >=1.5.0 seems to work as well.
    E.g., pip install typed-ast --upgrade

  2. Python 3.9.8 fails using Black and importing `typed_ast.ast3`

    The initial error was a failing Python Black pipeline. Black failed because it was pinned to an older version which now fails with Python 3.9.8.
    Updating Black to the latest version, 21.10b0, fixed the error for me.
    See also typed_ast issue #169:
    For others who may find this in a search, I ran into this problem via
    black because I had black pinned to an older version. The current
    version of black appears to no longer use typed-ast and thus won't
    encounter this issue.
    Using the latest typed-ast version >=1.5.0 seems to work as well.
    E.g., pip install typed-ast --upgrade

Solution 1

The initial error was a failing Python Black pipeline. Black failed because it was pinned to an older version which now fails with Python 3.9.8.

Updating Black to the latest version, 21.10b0, fixed the error for me.

See also typed_ast issue #169:

For others who may find this in a search, I ran into this problem via
black because I had black pinned to an older version. The current
version of black appears to no longer use typed-ast and thus won’t
encounter this issue.

Using the latest typed-ast version >=1.5.0 seems to work as well.

E.g., pip install typed-ast --upgrade

Original Author edited Apr 30 at 0:29 Of This Content

Conclusion

So This is all About This Tutorial. Hope This Tutorial Helped You. Thank You.

Also Read,

ittutorial team

I am an Information Technology Engineer. I have Completed my MCA And I have 4 Year Plus Experience, I am a web developer with knowledge of multiple back-end platforms Like PHP, Node.js, Python and frontend JavaScript frameworks Like Angular, React, and Vue.

Leave a Comment