From bfdfd74c5c4797cba296b214d5275062091ebef2 Mon Sep 17 00:00:00 2001 From: Brandt Bucher Date: Tue, 14 Jul 2020 09:04:45 -0700 Subject: [PATCH] PEP 622: Fix Django example (#1523) Closes https://github.com/gvanrossum/patma/issues/135 --- pep-0622.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pep-0622.rst b/pep-0622.rst index f6b2ba095..4c4139bb3 100644 --- a/pep-0622.rst +++ b/pep-0622.rst @@ -188,7 +188,7 @@ sequence. With the proposal in this PEP, we could rewrite that code into this:: match value: - case [*v, label := (Promise() | str())]: + case [*v, label := (Promise() | str())] if v: value = tuple(v) case _: label = key.replace('_', ' ').title()