ruff/crates/red_knot_python_semantic/resources/mdtest/diagnostics
David Peter e345307260
[red-knot] Fix diagnostic range for non-iterable unpacking assignments (#15994)
## Summary

I noticed that the diagnostic range in specific unpacking assignments is
wrong. For this example

```py
a, b = 1
```

we previously got (see first commit):

```
error: lint:not-iterable
 --> /src/mdtest_snippet.py:1:1
  |
1 | a, b = 1
  | ^^^^ Object of type `Literal[1]` is not iterable
  |
```

and with this change, we get:

```
error: lint:not-iterable
 --> /src/mdtest_snippet.py:1:8
  |
1 | a, b = 1
  |        ^ Object of type `Literal[1]` is not iterable
  |
```

## Test Plan

New snapshot tests.
2025-02-06 15:36:22 +01:00
..
unpacking.md [red-knot] Fix diagnostic range for non-iterable unpacking assignments (#15994) 2025-02-06 15:36:22 +01:00
unresolved_import.md [red-knot] fix unresolvable import range (#15976) 2025-02-05 14:01:58 -05:00