mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fixed failed tests and added test for PY-4027
This commit is contained in:
@@ -108,8 +108,14 @@ public class PyMissingConstructorInspection extends PyInspection {
|
||||
PyExpression[] args = ((PyCallExpression)qualifier).getArguments();
|
||||
if (args.length > 0) {
|
||||
if (args[0].getText().equals(cl.getName()))
|
||||
return true;
|
||||
return true;
|
||||
for (PyClass s : cl.iterateAncestorClasses()) {
|
||||
if (args[0].getText().equals(s.getName()))
|
||||
return true;
|
||||
}
|
||||
}
|
||||
else
|
||||
return true;
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user