mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-06 21:55:38 +07:00
Update PyUnusedLocalInspectionVisitor to not warn about unused parameters in overloads.
18 lines
357 B
Python
18 lines
357 B
Python
from typing import overload
|
|
|
|
|
|
class A:
|
|
@overload
|
|
def foo(self, value: None) -> None:
|
|
pass
|
|
|
|
@overload
|
|
def foo(self, value: int) -> str:
|
|
pass
|
|
|
|
@overload
|
|
def foo(self, value: str) -> str:
|
|
pass
|
|
|
|
def foo(self, <weak_warning descr="Parameter 'value' value is not used">value</weak_warning>):
|
|
return None |