Commit 9934278
authored
Do not show protocol compatibility note against unpacked sequence or mapping (#19358)
This was discovered in #19294 where an unrelated change produced a weird
notice that should not be shown. Current behavior of the added testcase:
```
main.py:10: error: Argument 1 to "foo" has incompatible type "*list[object]"; expected "P" [arg-type]
main.py:10: note: "list" is missing following "P" protocol member:
main.py:10: note: arg
main.py:11: error: Argument 1 to "foo" has incompatible type "**dict[str, object]"; expected "P" [arg-type]
main.py:11: note: "dict" is missing following "P" protocol member:
main.py:11: note: arg
```
https://mypy-play.net/?mypy=master&python=3.12&flags=strict&gist=d0228ba7d2802db8ac4457f374ccc1481 parent bca959f commit 9934278
2 files changed
+22
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2684 | 2684 | | |
2685 | 2685 | | |
2686 | 2686 | | |
2687 | | - | |
2688 | | - | |
2689 | | - | |
| 2687 | + | |
| 2688 | + | |
| 2689 | + | |
| 2690 | + | |
| 2691 | + | |
| 2692 | + | |
2690 | 2693 | | |
2691 | 2694 | | |
2692 | 2695 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3694 | 3694 | | |
3695 | 3695 | | |
3696 | 3696 | | |
| 3697 | + | |
| 3698 | + | |
| 3699 | + | |
| 3700 | + | |
| 3701 | + | |
| 3702 | + | |
| 3703 | + | |
| 3704 | + | |
| 3705 | + | |
| 3706 | + | |
| 3707 | + | |
| 3708 | + | |
| 3709 | + | |
| 3710 | + | |
| 3711 | + | |
| 3712 | + | |
0 commit comments