Skip to content

PEP 750 changes do no guard for usage with older versions like ast.parse(t'', feature_version=(3, 13)) #133196

Closed
@sobolevn

Description

@sobolevn

Bug report

Example:

>>> code = 't""'
>>> import ast
>>> ast.parse(code, feature_version=(3, 8))
Module(body=[Expr(value=TemplateStr(values=[]))], type_ignores=[])

I would like to work on the fix.

Linked PRs

Metadata

Metadata

Assignees

Labels

3.14bugs and security fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)topic-parsertype-bugAn unexpected behavior, bug, or error

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions