Skip to content

Python: Port InconsistentMRO.ql#21687

Draft
tausbn wants to merge 2 commits intomainfrom
tausbn/python-port-inconsistent-mro
Draft

Python: Port InconsistentMRO.ql#21687
tausbn wants to merge 2 commits intomainfrom
tausbn/python-port-inconsistent-mro

Conversation

@tausbn
Copy link
Copy Markdown
Contributor

@tausbn tausbn commented Apr 9, 2026

For this one we actually lose a test result. However, this is kind of to
be expected since we no longer have the "precise" MRO that the points-to
analysis computes.

Honestly, I'm on the fence about even keeping this query at all. It
seems like it might be superfluous in a world with good Python type
checking.

For this one we actually lose a test result. However, this is kind of to
be expected since we no longer have the "precise" MRO that the points-to
analysis computes.

Honestly, I'm on the fence about even keeping this query at all. It
seems like it might be superfluous in a world with good Python type
checking.
@tausbn tausbn added the no-change-note-required This PR does not need a change note label Apr 9, 2026
@github-actions github-actions bot added the Python label Apr 9, 2026
It's not possible for a class to actually inherit from itself, so if
this happens, something has gone wrong with our analysis. We therefore
explicitly exclude these results so they don't result in false
positives.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-change-note-required This PR does not need a change note Python

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant