Files
openide/python/testData/inspections/PyRedeclarationInspection/overloadImplementationOverloadImplementationInClass.py
Semyon Proshev c13fbf623a PY-22971 Fixed: Support @typing.overload in regular Python files, not only in Python stubs
Update PyRedeclarationInspection to not consider preceding overloads as write elements for the following implementation.
2017-05-13 00:17:46 +03:00

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