logilab-astng #77187 ancestor() only returns the first class when inheriting from two classes from the same module [validation pending]
for instance: import module class A(module.B, module.C) ... in such case, the .ancestors() method of the astng representation for A will fail to infer C. This is due to a bug in inference path management (ie infinite loop safety belt) on such example (both A and C are infered through the 'import module' statement). | |
priority | important |
---|---|
type | bug |
done in | 0.23.0 |
load | 0.500 |
load left | 0.000 |
closed by | #ae207dfe2aa0 copy context path when cloning inference context, else we may skip undesired inference branches. closes #77187 |