mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-18 08:50:57 +07:00
Resolve: * resolve to the first implementation in class, if there is no implementation, resolve to the first overload * resolve to the last implementation in module, if there is no implementation, resolve to the last overload
20 lines
210 B
Python
20 lines
210 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 |