-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove redundant parenthesis in
__setitem__
/__getitem__
calls
- Loading branch information
1 parent
eb32729
commit 5901e52
Showing
7 changed files
with
103 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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 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 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 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,52 @@ | ||
x[1] | ||
x[1,] | ||
x[(1,)] | ||
x[1, 2] | ||
x[1, 2,] | ||
x[(1, 2)] | ||
x[1, 2] | ||
x[(1, 2)] | ||
x[(1, 2),] | ||
|
||
x[1] = 1 | ||
x[1,] = 1 | ||
x[(1,)] = 1 | ||
x[1, 2] = 1 | ||
x[1, 2,] = 1 | ||
x[(1, 2)] = 1 | ||
x[1, 2] = 1 | ||
x[(1, 2)] = 1 | ||
x[(1, 2),] = 1 | ||
|
||
x[(a := 1)] | ||
x[(a := 1)] = 1 | ||
|
||
# output | ||
x[1] | ||
x[1,] | ||
x[1,] | ||
x[1, 2] | ||
x[ | ||
1, | ||
2, | ||
] | ||
x[1, 2] | ||
x[1, 2] | ||
x[1, 2] | ||
x[(1, 2),] | ||
|
||
x[1] = 1 | ||
x[1,] = 1 | ||
x[1,] = 1 | ||
x[1, 2] = 1 | ||
x[ | ||
1, | ||
2, | ||
] = 1 | ||
x[1, 2] = 1 | ||
x[1, 2] = 1 | ||
x[1, 2] = 1 | ||
x[(1, 2),] = 1 | ||
|
||
x[(a := 1)] | ||
x[(a := 1)] = 1 |
This file contains 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,6 @@ | ||
x[(a := 1)] | ||
x[(a := 1)] = 1 | ||
|
||
# output | ||
x[a:=1] | ||
x[a:=1] = 1 |
This file contains 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 |
---|---|---|
|
@@ -37,5 +37,5 @@ | |
~("" % a) | ||
2 ** ("" % a) | ||
await ("" % a) | ||
b[("" % a)] | ||
b["" % a] | ||
b(("" % a)) |
This file contains 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