Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
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.

typed_ast end of life (July 2023) #179

Copy link
Copy link
Open
@hauntsaninja

Description

@hauntsaninja
Issue body actions

typed_ast does not support parsing syntax introduced in Python 3.8 and newer, and never will. Instead, it is recommended to use the stdlib ast module in Python 3.8 and newer, which has been augmented to support extracting type comments and has some support for parsing older versions of Python 3.

This means the only valid use cases for typed_ast are a) parsing when run with Python 3.7 and older, or b) parsing Python 2.

typed_ast will continue to be maintained through Python 3.7 EOL (27 June 2023), but will likely become unmaintained soon thereafter.

Given this, we recommend:

  • Switch your project over to using ast when run on Python 3.8 or newer. Avoid installing typed_ast when running on Python 3.8 or newer by using a PEP 508 requirement, see for example.
  • If your project supports parsing Python 2, make this support an optional extra, so users do not have to install typed_ast unless they need that support, see for example. Also, y'know, consider dropping Python 2 support.

(To avoid user confusion, please discuss in #170)

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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.