☰
Debian Codegraph
@
4.0.8-1
4.0.6-1
/
/
tests
/
functional
/
u
/
unpacking
/
unpacking_non_sequence_py310.py
☽
☼
tests/functional/u/unpacking/unpacking_non_sequence_py310.py
code
plain
raw
symbols
SCIP
GPL-2+
Copyright (c) 2003-2017, Logilab, PyCQA and contributors
debian/copyright
1
"""Test returns from structural pattern matching cases."""
2
3
def
unpack
(num) -> tuple[
int
,
int
]:
4
"""Return a tuple of integers."""
5
match
num:
6
case
1
:
7
return
1
,
1
8
case
_:
9
return
0
,
0
10
11
X
,
Y
=
unpack
(
1
)