PY-38636 Fix go to declaration lead to pyi in some cases

(cherry picked from commit 33b52287f1d5241ee0bc4b8ff1c065e32f26d063)

IJ-MR-18958

GitOrigin-RevId: 5a59d6e6ea3ab001b8237d408340536abe2678e0
This commit is contained in:
andrey.matveev
2021-12-01 21:36:57 +07:00
committed by intellij-monorepo-bot
parent c2bb315c9b
commit 2953318655
16 changed files with 82 additions and 26 deletions

View File

@@ -0,0 +1,4 @@
def foo():
return 42
Clazz = foo()

View File

@@ -0,0 +1,2 @@
class Clazz:
def __init__(self) -> None: ...

View File

@@ -0,0 +1,2 @@
import source
cl = source.Cl<caret>azz()

View File

@@ -0,0 +1,3 @@
class Clazz:
def __init__(self) -> None:
pass

View File

@@ -0,0 +1,2 @@
class Clazz:
def __init__(self) -> None: ...

View File

@@ -0,0 +1,2 @@
import source
cl = source.Cl<caret>azz()

View File

@@ -0,0 +1,3 @@
class Clazz:
def __init__(self) -> None:
pass

View File

@@ -0,0 +1,2 @@
class Clazz:
def __init__(self) -> None: ...

View File

@@ -0,0 +1,3 @@
from mypack.sour<caret>ce import Clazz
c = Clazz()