Instagram / LibCST

A concrete syntax tree parser and serializer library for Python that preserves many aspects of Python's abstract syntax tree
https://libcst.readthedocs.io/
Other
1.57k stars 192 forks source link

`libcst.tool`: add support Python 3.9, 3.10, 3.11, 3.12 and 3.13 #1229

Open jorenham opened 1 month ago

jorenham commented 1 month ago

Currently, running e.g. libcst.tool codemod --python-version=3.9 ... will raise a ValueError with the message:

ValueError: LibCST can only parse code using one of the following versions of Python's grammar: 3.0, 3.1, 3.3, 3.5, 3.6, 3.7, 3.8. More versions may be supported by future releases.

This adds the missing supported python version strings.