PY-34493 Don't copy annotations from .pyi stubs and libraries on super method completion

GitOrigin-RevId: 65787827f5df5aa80986107dda0ba555b0942d40
This commit is contained in:
Mikhail Golubev
2023-08-09 20:53:35 +00:00
committed by intellij-monorepo-bot
parent dac1ef32bb
commit b50c617b7c
14 changed files with 122 additions and 19 deletions
@@ -0,0 +1,5 @@
from mod import Super
class Sub(Super):
def method(self, p: int) -> str:
@@ -0,0 +1,5 @@
from mod import Super
class Sub(Super):
def meth<caret>
@@ -0,0 +1,3 @@
class Super:
def method(self, p: int) -> str:
...
@@ -0,0 +1,7 @@
class Super:
def method(self, x):
pass
class Sub(Super):
def method(self, x):<caret>
@@ -0,0 +1,7 @@
class Super:
def method(self, x):
pass
class Sub(Super):
def meth<caret>
@@ -0,0 +1,3 @@
class Super:
def method(self, x: int) -> str:
...
@@ -0,0 +1,3 @@
class Super:
def method(self, x: int) -> str:
pass
@@ -0,0 +1,5 @@
from mod import Super
class Sub(Super):
def method(self, x):<caret>
@@ -0,0 +1,5 @@
from mod import Super
class Sub(Super):
def meth<caret>