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()