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

Fix parser bug where "type" was misinterpreted as a keyword inside a match #3950

Merged
merged 4 commits into from Oct 17, 2023

Conversation

JelleZijlstra
Copy link
Collaborator

Fixes #3790

Slightly hacky, but I think this is correct and it should also improve performance somewhat.

JelleZijlstra and others added 2 commits October 16, 2023 07:06
…match

Fixes psf#3790

Slightly hacky, but I think this is correct and it should also improve performance somewhat.
@github-actions
Copy link

github-actions bot commented Oct 16, 2023

diff-shades reports zero changes comparing this PR (d14db1b) to main (722735d).


What is this? | Workflow run | diff-shades documentation

Copy link
Collaborator

@hauntsaninja hauntsaninja left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not particularly familiar with blib2to3, but heuristic seems fine

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

Successfully merging this pull request may close these issues.

Black 23.7.0 thinks accessing an attribute named type inside brackets in a switch statement is invalid syntax
2 participants