Skip to content

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

Description

@hauntsaninja

The following should raise SyntaxError:

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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