Files
openide/python/testData/quickFixes/PyRemoveParameterQuickFixTest/overloadsAndImplementationInClass.py
Semyon Proshev 986cfc4921 PY-22971 Fixed: Support @typing.overload in regular Python files, not only in Python stubs
Update PyRemoveParameterQuickFix to remove parameter from overloads.
2017-05-13 00:17:47 +03:00

18 lines
283 B
Python

from typing import overload
class A:
@overload
def foo(self) -> None:
pass
@overload
def foo(self, value: int) -> str:
pass
@overload
def foo(self, value: str) -> str:
pass
def foo(self, va<caret>lue=None):
return None