Skip to content

Commit

Permalink
fix Python 3.8 and 3.9 compatibility, second attempt
Browse files Browse the repository at this point in the history
Try, try, try again until it works;
Merrily, merrily, merrily, until it works.
  • Loading branch information
Technologicat committed Sep 26, 2024
1 parent 49b772c commit df8bf45
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion unpythonic/syntax/tests/test_letdo.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def runtests():
# Assignment expressions can now be used unparenthesized within set literals and set comprehensions, as well as in sequence indexes (but not slices).
d1 = do[local[(x := 17)],
print(x),
x := 23,
(x := 23),
x]
test[d1 == 23]

Expand Down
2 changes: 1 addition & 1 deletion unpythonic/syntax/tests/test_letdoutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ def testletdestructuring(testdata):
testletdestructuring(testdata)

# haskelly let-where
testdata = q[let[y * x, where[x := 21, y := 2]]] # noqa: F821
testdata = q[let[y * x, where[(x := 21), (y := 2)]]] # noqa: F821
testletdestructuring(testdata)
testdata = q[let[y * x, where[x << 21, y << 2]]] # noqa: F821
testletdestructuring(testdata)
Expand Down

0 comments on commit df8bf45

Please sign in to comment.