mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
Update PyReferenceImpl to resolve to the latest definition of the callable and prepend it with overloads. Update PyParameterInfoHandler and PyTypeChecker to take into account overloads only if they exist.
20 lines
221 B
Python
20 lines
221 B
Python
from typing import overload
|
|
|
|
|
|
@overload
|
|
def foo(value: None) -> None:
|
|
pass
|
|
|
|
@overload
|
|
def foo(value: int) -> str:
|
|
pass
|
|
|
|
@overload
|
|
def foo(value: str) -> str:
|
|
pass
|
|
|
|
def foo(value):
|
|
return None
|
|
|
|
|
|
foo(<arg1>) |