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