Skip to content

Conversation

fangyi-zhou
Copy link
Contributor

@fangyi-zhou fangyi-zhou commented Oct 14, 2025

This PR is a series of minor diffs building up to the correct handling of multiple inheritance checks for methods, following up from #1196.

Main changes:

Next steps:
We're close to handle multiple inheritance checks for methods. We still have some errors on stdlib due to handling of type variables (#1196 (comment) item 2), which I consider as a blocker.

Any errors would be reported again by bad-override checks. Removing
redundant error reporting (which is also what Pyright is doing).
Factor out code for determining whether an override is correct, so that
we can use it to skip fields when checking multiple inheritance
consistency.
We're skipping them for the override checks already. Re-using the
refactored function to also skip them during multiple inheritance
checks.

Newly added test is passing because we don't check methods in multiple
inheritance checks yet. Adding the test there to prevent regressions.
@meta-cla meta-cla bot added the cla signed label Oct 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant