ruff
11ef7f45 - [ty] Add diagnostic hint for invalid assignments involving invariant generics (#24032)

Commit
246 days ago
[ty] Add diagnostic hint for invalid assignments involving invariant generics (#24032) ## Summary Relates to [this FAQ entry](https://docs.astral.sh/ty/reference/typing-faq/#invariant-generics). Consider ```py def modify(xs: list[int]): xs.append(42) answers: list[bool] = [True, False] modify(answers) ``` With this change, we now emit some `info` hints in the `invalid-assignment` diagnostic that explain the problem in more detail. ## Test Plan New snapshot tests
Author
Parents
Loading