Problem: In an unpack assignment the variable after the ";" gets the type
of the whole tuple instead of the type of the remaining items.
When the assigned value has type "any" it even gets a list type,
so that a tuple cannot be assigned to it later (Mao-Yining).
Solution: Give the variable the type of the remaining items. Keep "any"
when it is not known whether a list or a tuple is assigned
(Hirohito Higashi).
fixes: #21057
fixes: #21058closes: #21059
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Signed-off-by: Hirohito Higashi <h.east.727@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>