mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-29 13:25:17 +00:00
![]() ## Summary This PR fixes a panic which can occur in an unpack assignment when: * (number of target expressions) - (number of tuple types) > 2 * There's a starred expression The reason being that the `insert` panics because the index is greater than the length. This is an error case and so practically it should occur very rarely. The solution is to resize the types vector to match the number of expressions and then insert the starred expression type. ## Test Plan Add a new test case. |
||
---|---|---|
.. | ||
resources | ||
src | ||
tests | ||
build.rs | ||
Cargo.toml |