mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 14:23:28 +07:00
* Select implementation as super method, not an overload * Copy all its overloads * Add imports for decorators (e.g. typing.overload)
15 lines
252 B
Python
15 lines
252 B
Python
from typing import overload
|
|
|
|
from methodWithOverloadsInAnotherFile_parent import Foo
|
|
|
|
class B(Foo):
|
|
@overload
|
|
def fun(self, s:str) -> str: pass
|
|
|
|
@overload
|
|
def fun(self, i:int) -> int: pass
|
|
|
|
def fun(self, x):
|
|
super().fun(x)
|
|
|