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
Open
Description
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
Labels
No labels