Skip to content

Commit bfdfd74

Browse files
authored
PEP 622: Fix Django example (#1523)
Closes gvanrossum/patma#135
1 parent d3ddd08 commit bfdfd74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pep-0622.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ sequence. With the proposal in this PEP, we could rewrite that code
188188
into this::
189189

190190
match value:
191-
case [*v, label := (Promise() | str())]:
191+
case [*v, label := (Promise() | str())] if v:
192192
value = tuple(v)
193193
case _:
194194
label = key.replace('_', ' ').title()

0 commit comments

Comments
 (0)