mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-20 20:20:56 +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.
17 lines
207 B
Python
17 lines
207 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 |