-
Notifications
You must be signed in to change notification settings - Fork 2.8k
fix: bug where the doublestar operation had inconsistent formatting. #4154
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
Merged
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
b93bf4a
Fix a bug where the doublestar operation had inconsistent formatting.
wannieman98 09d1e92
Update CHANGES.md to include the correct PR number, not the issue num…
wannieman98 5da10ac
Move the change log to the unreleased section
wannieman98 e9bdca6
Move the changes comment into the preview section and remove the unne…
wannieman98 2bbe85d
Update CHANGES.md from `/*/*` to `**`
wannieman98 e2fa9f6
Apply suggestions from code review
wannieman98 a6a22f3
Add the newly updated is simple lookup function to the preview mode. …
wannieman98 a241946
Update power_op_spacing.py
wannieman98 addc702
Update trans.py docstring for handle_is_simple_look_up_prev
wannieman98 f7e1621
Update trans.py
wannieman98 f514570
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] f2b7774
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 75c965e
Address comments in the revision to remove duplicate test case and fi…
wannieman98 532e6b2
Merge branch 'issue_4149' of https://github.com/wannieman98/black int…
wannieman98 d9d1279
Merge branch 'main' into issue_4149
JelleZijlstra File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
tests/data/cases/is_simple_lookup_for_doublestar_expression.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| # flags: --preview | ||
| m2 = None if not isinstance(dist, Normal) else m** 2 + s * 2 | ||
| m3 = None if not isinstance(dist, Normal) else m ** 2 + s * 2 | ||
| m4 = None if not isinstance(dist, Normal) else m**2 + s * 2 | ||
| m5 = obj.method(another_obj.method()).attribute **2 | ||
| m6 = None if ... else m**2 + s**2 | ||
|
|
||
|
|
||
| # output | ||
| m2 = None if not isinstance(dist, Normal) else m**2 + s * 2 | ||
| m3 = None if not isinstance(dist, Normal) else m**2 + s * 2 | ||
| m4 = None if not isinstance(dist, Normal) else m**2 + s * 2 | ||
| m5 = obj.method(another_obj.method()).attribute ** 2 | ||
| m6 = None if ... else m**2 + s**2 |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.