Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Add regression test for #6094 #6402

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

jacobtylerwalls
Copy link
Member

Type of Changes

Type
βœ“ πŸ› Bug fix

Description

Closes #6094 (requires pylint-dev/astroid#1519)

@jacobtylerwalls jacobtylerwalls added the Needs astroid update Needs an astroid update (probably a release too) before being mergable label Apr 19, 2022
@jacobtylerwalls jacobtylerwalls added this to the 2.14.0 milestone Apr 19, 2022
@Pierre-Sassoulas Pierre-Sassoulas marked this pull request as ready for review May 2, 2022 12:29
@jacobtylerwalls
Copy link
Member Author

Still needs an astroid 2.12 update though as it's an enhancement :-)

@jacobtylerwalls jacobtylerwalls marked this pull request as draft July 17, 2022 21:48
@jacobtylerwalls jacobtylerwalls modified the milestones: 2.15.0, 2.16.0 Jul 17, 2022
@Pierre-Sassoulas Pierre-Sassoulas self-requested a review July 18, 2022 06:58
@jacobtylerwalls jacobtylerwalls changed the title Add regression test for #6094 WIP: Add regression test for #6094 Jul 18, 2022
@jacobtylerwalls
Copy link
Member Author

Waiting on Daniel's investigation in pylint-dev/astroid#1519

@Pierre-Sassoulas Pierre-Sassoulas added the Blocked 🚧 Blocked by a particular issue label Jul 18, 2022
@DanielNoord
Copy link
Collaborator

My bad. I should have written something about this.

Turns out this is quite difficult to solve. The ObjectModel is used to resolve some methods but for some reasons it gets priority over many other sources in the mro. This is problematic as very often stuff like __init__ and __eq__ get overwritten.

However, in other places for some reason we depend on going to ObjectModel directly instead of using the mro.

I haven't really found a solution but looking at the failed test in that PR and debugging why it gets incorrectly ingerrred shows pretty clear what is going wrong there.

@jacobtylerwalls jacobtylerwalls modified the milestones: 2.16.0, 2.17.0 Nov 20, 2022
@Pierre-Sassoulas Pierre-Sassoulas modified the milestones: 2.17.0, 3.0.0 Mar 7, 2023
@jacobtylerwalls jacobtylerwalls removed this from the 3.0.0 milestone Apr 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Blocked 🚧 Blocked by a particular issue Needs astroid update Needs an astroid update (probably a release too) before being mergable
Projects
None yet
Development

Successfully merging this pull request may close these issues.

no-member raised on __getattribute__ for modules
3 participants