mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-14 18:05:27 +07:00
19 lines
866 B
Python
19 lines
866 B
Python
match 42:
|
|
case <error descr="Double star pattern cannot be used outside mapping patterns">**xs</error>:
|
|
pass
|
|
case (<error descr="Double star pattern cannot be used outside mapping patterns">**xs</error>):
|
|
pass
|
|
case (<error descr="Double star pattern cannot be used outside mapping patterns">**xs</error>,):
|
|
pass
|
|
case [<error descr="Double star pattern cannot be used outside mapping patterns">**xs</error>]:
|
|
pass
|
|
case {'foo': bar, **xs}:
|
|
pass
|
|
case str(<error descr="Double star pattern cannot be used outside mapping patterns">**xs</error>):
|
|
pass
|
|
case <error descr="Double star pattern cannot be used outside mapping patterns">**xs</error> as alias:
|
|
pass
|
|
case [xs] | <error descr="Double star pattern cannot be used outside mapping patterns">**xs</error>:
|
|
pass
|
|
|
|
|