mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-19 04:51:24 +07:00
Don't consider metaclass.__call__(cls, *args, **kwargs) as a possible constructor (PY-17877, PY-41380)
GitOrigin-RevId: de83bde719d08de70dcff7f3ad7dfa722a66af72
This commit is contained in:
committed by
intellij-monorepo-bot
parent
e3d0698dab
commit
40c9d375e5
@@ -80,6 +80,11 @@ public abstract class PyCommonResolveTest extends PyCommonResolveTestCase {
|
||||
assertResolvesTo(LanguageLevel.getLatest(), PyFunction.class, PyNames.CALL);
|
||||
}
|
||||
|
||||
// PY-17877, PY-41380
|
||||
public void testInitializingNotToMetaclassSelfArgsKwargsDunderCall() {
|
||||
assertResolvesTo(LanguageLevel.getLatest(), PyClass.class, "MyClass");
|
||||
}
|
||||
|
||||
public void testInitOrNewReturnsInitWhenNewIsFirst() {
|
||||
doTestInitOrNewReturnsInit();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user