Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lacking support for match statement #824

Closed
Stercator opened this issue Nov 26, 2022 · 2 comments
Closed

Lacking support for match statement #824

Stercator opened this issue Nov 26, 2022 · 2 comments

Comments

@Stercator
Copy link

Context:

  • Python 3.10.8
  • LibCST 0.4.9

Minimum example:

arg = None
match arg:
    case _:
        pass

Expectation: parsed without errors

Actual:

ParserSyntaxError: Syntax Error @ 2:11.
Incomplete input. Encountered 'arg', but expected ';', or 'NEWLINE'.

    match arg:
          ^
@zsol
Copy link
Member

zsol commented Nov 26, 2022

try setting the LIBCST_PARSER_TYPE environment variable to native before parsing 3.10+ python files. See #285 (comment)

@Stercator
Copy link
Author

Perfect! Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants