mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-28 19:16:40 +07:00
Update PyRedeclarationInspection to not consider preceding overloads as write elements for the following implementation.
19 lines
265 B
Python
19 lines
265 B
Python
from typing import overload
|
|
|
|
|
|
@overload
|
|
def foo(value: int) -> str:
|
|
pass
|
|
|
|
|
|
def foo(value):
|
|
return None
|
|
|
|
|
|
@overload
|
|
def foo(value: str) -> str:
|
|
pass
|
|
|
|
|
|
def <warning descr="Redeclared 'foo' defined above without usage">foo</warning>(value):
|
|
return None |