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

Match-case causes syntax errors #2377

Closed
nefrob opened this issue Jan 31, 2023 · 3 comments
Closed

Match-case causes syntax errors #2377

nefrob opened this issue Jan 31, 2023 · 3 comments

Comments

@nefrob
Copy link
Contributor

nefrob commented Jan 31, 2023

Ex.

x = 1
match x:
    case 1:
        pass

E999 SyntaxError: invalid syntax. Got unexpected token 'x'

when running ruff --fix on v0.0.238 and with target-version = "py311" in pyproject.toml.

@messense
Copy link
Contributor

Duplicate of #282

@charliermarsh
Copy link
Member

Just closing as duplicate.

@charliermarsh
Copy link
Member

Fixed as of v0.0.250.

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

3 participants