Add support for limiting the native parser to a certain Python version
Open
enhancement
parsing
rust
- Dominant language
- Python
- Stars
- 1.9k
- Forks
- 229
- PR merge metrics
- No merged PRs in 30d
Description
This is required for guaranteeing correctness and safety when parsing/modifying/dumping trees for production code.
Eg, when writing codemods, we want to know that if we ask to parse with 3.7 code, that we're not getting trees/nodes/grammar that are only available in 3.8 or 3.9, and vice versa.
_Originally posted by @jreese in https://github.com/Instagram/LibCST/issues/566#issuecomment-999148206_
Contributor guide
Assessment
This issue has not been assessed yet.