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

As expressions on case statements are broken inside dicts #2685

Closed
isidentical opened this issue Dec 12, 2021 · 0 comments · Fixed by #2686
Closed

As expressions on case statements are broken inside dicts #2685

isidentical opened this issue Dec 12, 2021 · 0 comments · Fixed by #2686
Labels
T: bug Something isn't working

Comments

@isidentical
Copy link
Collaborator

This is a left-over from my initial comment at #2242. When you have a dict with the item as an blabla as blabla, black can't parse it;

match something:
    case {
        "key": key as key_1,
        "password": PASS.ONE | PASS.TWO | PASS.THREE as password,
    }:
        pass
    case {"maybe": something(complicated as this) as that}:
        pass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T: bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant