mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
PY-21224 Fixed: False positive unresolved base method when using six.with_metaclass() and multiple inheritance
Support metaclass and several base classes in six.with_metaclass
This commit is contained in:
@@ -65,7 +65,11 @@ public class PyClassMROTest extends PyTestCase {
|
||||
}
|
||||
|
||||
public void testSixWithMetaclass() {
|
||||
assertMRO(getClass("C"), "B", "object");
|
||||
assertMRO(getClass("C"), "B", "D", "object");
|
||||
}
|
||||
|
||||
public void testSixWithMetaclassWithAs() {
|
||||
assertMRO(getClass("C"), "B", "D", "object");
|
||||
}
|
||||
|
||||
// PY-4183
|
||||
|
||||
+5
@@ -734,6 +734,11 @@ public class PyUnresolvedReferencesInspectionTest extends PyInspectionTestCase {
|
||||
doMultiFileTest();
|
||||
}
|
||||
|
||||
// PY-21224
|
||||
public void testSixWithMetaclass() {
|
||||
doTest();
|
||||
}
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
protected Class<? extends PyInspection> getInspectionClass() {
|
||||
|
||||
Reference in New Issue
Block a user