ruff
c88e1a06 - [ty] Avoid emitting Liskov repeated violations from grandparent to child (#22484)

Commit
23 days ago
[ty] Avoid emitting Liskov repeated violations from grandparent to child (#22484) ## Summary If parent violates LSP against grandparent, and child has the same violation (but matches parent), we no longer flag the LSP violation on child, since it can't be fixed without violating parent. If parent violates LSP against grandparent, and child violates LSP against both parent and grandparent, we emit two diagnostics (one for each violation). If parent violates LSP against grandparent, and child violates LSP against parent (but not grandparent), we flag it. Closes https://github.com/astral-sh/ty/issues/2000.
Author
Parents
Loading