Skip to content

ast.parse allows positional-only params with old feature_version #94996

Closed
@hauntsaninja

Description

@hauntsaninja

The following should raise SyntaxError:

ast.parse('def foo(x, /): ...', feature_version=(3, 7))

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions