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

E211 error on sequence pattern match #916

Open
oobug opened this issue Dec 13, 2021 · 1 comment
Open

E211 error on sequence pattern match #916

oobug opened this issue Dec 13, 2021 · 1 comment

Comments

@oobug
Copy link

oobug commented Dec 13, 2021

Expected Behaviour

This syntax should not produce any linting errors:

match two_item_collection:
    case [item1, item2]:
        print(item1, item2)

Actual Behaviour

I get "PEP 8 (E211): whitespace before '['" on the 2nd line of the expression. As case is a soft keyword in this context, the linter should not identify this syntax as having an E211 error.

ST3, Anaconda and OS versions

Sublime Text 4, build 4121
Anaconda version 2.2.3
OS: Windows 10 Pro build 19043.1348

@DamnWidget
Copy link
Owner

Will be fixed on next release

image

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