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

blib2to3: support unparenthesized wulruses in more places #2447

Merged
merged 2 commits into from Aug 26, 2021

Conversation

ichard26
Copy link
Collaborator

Description

Implementation stolen from PR davidhalter/parso#162. Thanks parso!

I could add support for these newer syntactical constructs in the target version detection logic, but until I get diff-shades up and running I don't feel very comfortable adding the code.

Checklist - did you ...

  • Add a CHANGELOG entry if necessary?
  • Add / update tests if necessary?
  • Add new / update outdated documentation? -- not applicable

Implementation stolen from PR davidhalter/parso#162. Thanks parso!

I could add support for these newer syntactical constructs in the
target version detection logic, but until I get diff-shades up
and running I don't feel very comfortable adding the code.
Copy link
Collaborator

@JelleZijlstra JelleZijlstra left a comment

Choose a reason for hiding this comment

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

Could you add a test ensuring that we don't remove parentheses from parenthesized walruses in 3.9?

tests/data/pep_572_py39.py Outdated Show resolved Hide resolved
tests/data/pep_572_py310.py Outdated Show resolved Hide resolved
@JelleZijlstra JelleZijlstra merged commit 366a080 into main Aug 26, 2021
@JelleZijlstra JelleZijlstra deleted the more-unparenthesized-wulrus-plz branch August 26, 2021 20:59
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.

None yet

2 participants