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

No Py 3.10 match/case support #180

Open
s0undt3ch opened this issue Nov 6, 2024 · 0 comments
Open

No Py 3.10 match/case support #180

s0undt3ch opened this issue Nov 6, 2024 · 0 comments

Comments

@s0undt3ch
Copy link

>>> CODE = '''
... foo = "bar"
... match foo:
...     case "bar":
...         print(f"Case {foo}")
...     case "blah":
...         print(f"Case {foo}")
...     case _:
...         print("No match")
... '''
>>> RedBaron(CODE)

 ... traceback ...
baron.parser.ParsingError: The only possible keyword before an atomtrailers is 'await', not 'match'
@s0undt3ch s0undt3ch changed the title No Py 3.10 `match/case' support No Py 3.10 match/case support Nov 6, 2024
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

1 participant