mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Added a test for resolving from a Python *.pyi stub to a Python file (PY-16402)
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
from m1 import C
|
||||
|
||||
|
||||
def f(x: C) -> None: ...
|
||||
# <ref>
|
||||
@@ -0,0 +1,2 @@
|
||||
class C:
|
||||
pass
|
||||
@@ -35,4 +35,8 @@ public class PyiResolveTest extends PyMultiFileResolveTestCase {
|
||||
public void testBuiltinInt() {
|
||||
assertResolvesTo(PyClass.class, "int");
|
||||
}
|
||||
|
||||
public void testFromPyiToClassInPy() {
|
||||
assertResolvesTo(PyClass.class, "C");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user