mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-02 11:18:16 +07:00
PY-36062: Add resolve attributes matching PyModuleType.MODULE_MEMBERS to types.ModuleType attributes. Add matching PyClassType: ModuleType to PyModuleType.
GitOrigin-RevId: d2988397e4a58f9170a90cd6a3251054dedf896f
This commit is contained in:
committed by
intellij-monorepo-bot
parent
fe64a32bab
commit
48e8e52668
@@ -1532,4 +1532,12 @@ public abstract class PyCommonResolveTest extends PyCommonResolveTestCase {
|
||||
final TypeEvalContext context = TypeEvalContext.codeInsightFallback(myFixture.getProject());
|
||||
assertEmpty(file.findTopLevelAttribute("t").multiResolveAssignedValue(PyResolveContext.defaultContext().withTypeEvalContext(context)));
|
||||
}
|
||||
|
||||
// PY-36062
|
||||
public void testModuleTypeAttributes() {
|
||||
myFixture.copyDirectoryToProject("resolve/" + getTestName(false), "");
|
||||
final PyTargetExpression target = assertResolvesTo(PyTargetExpression.class, "__name__");
|
||||
assertEquals("ModuleType", target.getContainingClass().getName());
|
||||
assertEquals("types.pyi", target.getContainingFile().getName());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user