Incorrect inference of self
in methods defined in superclasses in unbound methods on a subclass
#1008
Labels
self
in methods defined in superclasses in unbound methods on a subclass
#1008
Steps to reproduce
Current behavior
that
is inferred as an instance of.Base
not.Derived
, causing this exception:which leads to
no-member
warnings onpylint
Expected behavior
that
is inferred as an instance of.Derived
.python -c "from astroid import __pkginfo__; print(__pkginfo__.version)"
output2.5.7
Related issues
Appears to be the root-cause of pylint-dev/pylint#4377.
Ref pylint-dev/pylint#4487
The text was updated successfully, but these errors were encountered: