Debian Codegraph @

tests/functional/u/unpacking/unpacking_non_sequence_py310.py

raw symbols SCIP
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)