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

cant format file contains syntax match #1085

Closed
zxcvbnm3057 opened this issue Apr 28, 2023 · 1 comment
Closed

cant format file contains syntax match #1085

zxcvbnm3057 opened this issue Apr 28, 2023 · 1 comment

Comments

@zxcvbnm3057
Copy link

While try to format a file contains new match syntax. Error occurs.

Error information:

lib2to3.pgen2.parse.ParseError: bad input: type=1, value='line',

How to reproduce:

Try format code like this:

a=3
b=0
match a:
    case 0:
        b = 1
    case _:
        b=2

print(b) 

version info:
Python 3.10.2 with yapf 0.33.0

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