ruff
99fa850e - [red-knot] Assignability for subclasses of `Any` and `Unknown` (#17557)

Commit
163 days ago
[red-knot] Assignability for subclasses of `Any` and `Unknown` (#17557) ## Summary Allow (instances of) subclasses of `Any` and `Unknown` to be assignable to (instances of) other classes, unless they are final. This allows us to get rid of ~1000 false positives, mostly when mock-objects like `unittest.mock.MagicMock` are assigned to various targets. ## Test Plan Adapted and new Markdown tests.
Author
Parents
Loading