Skip to content

Errors from new parser can be worse (compared to old parser) #21947

Description

@ilevkivskyi

This is a follow-up for #21823. Most notably something like this causes two errors with different error codes:

x = 0  # type: x y  # E: Syntax error in type comment "x y"  [syntax] \
                    # E: Invalid type comment or annotation  [valid-type]

Potentially we may want to add some filtering logic to improve/simplify syntax errors.
cc @JukkaL

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions