File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -491,23 +491,23 @@ def test14():
491491 x = "the nonlocal x" # restore the test environment
492492
493493 # v0.15.3+: walrus syntax
494- @dlet [ (x := "the env x" )]
494+ @dlet (x := "the env x" )
495495 def test15 ():
496496 def inner ():
497497 (x := "updated env x" ) # noqa: F841, this writes to the let env since there is no `x` in an intervening scope, according to Python's standard rules.
498498 inner ()
499499 return x
500500 test [test15 () == "updated env x" ]
501501
502- @dlet [ (x := "the env x" )]
502+ @dlet (x := "the env x" )
503503 def test16 ():
504504 def inner ():
505505 x = "the inner x" # noqa: F841, unused on purpose, for testing. An assignment *statement* does NOT write to the let env.
506506 inner ()
507507 return x
508508 test [test16 () == "the env x" ]
509509
510- @dlet [ (x := "the env x" )]
510+ @dlet (x := "the env x" )
511511 def test17 ():
512512 x = "the local x" # This lexical variable shadows the env x.
513513 def inner ():
You can’t perform that action at this time.
0 commit comments