X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/673327449f86fce558adde153bb6cbe54bfebad2..28ab82aab013978b7ed91bda816de3d41385f260:/tests/data/pep_572.py?ds=inline diff --git a/tests/data/pep_572.py b/tests/data/pep_572.py index 563e8a7..c6867f2 100644 --- a/tests/data/pep_572.py +++ b/tests/data/pep_572.py @@ -2,6 +2,8 @@ (a := a) if (match := pattern.search(data)) is None: pass +if match := pattern.search(data): + pass [y := f(x), y ** 2, y ** 3] filtered_data = [y for x in data if (y := f(x)) is None] (y := f(x)) @@ -39,5 +41,7 @@ foo(b := 2, a=1) foo((b := 2), a=1) foo(c=(b := 2), a=1) -while x:= f(x): +while x := f(x): + pass +while x := f(x): pass