mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-07 01:41:11 +07:00
Update PyUnusedLocalInspectionVisitor to not warn about unused parameters in overloads.
17 lines
280 B
Python
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 |