PEP 622: Fix Django example (#1523)

Closes https://github.com/gvanrossum/patma/issues/135
This commit is contained in:
Brandt Bucher 2020-07-14 09:04:45 -07:00 committed by GitHub
parent d3ddd080ee
commit bfdfd74c5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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