Files
Semyon Proshev 5675e09b0b PY-22971 Fixed: Support @typing.overload in regular Python files, not only in Python stubs
Update PyUnusedLocalInspectionVisitor to not warn about unused parameters in overloads.
2017-05-13 00:17:47 +03:00

17 lines
280 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(<weak_warning descr="Parameter 'value' value is not used">value</weak_warning>):
return None