PY-22971 Fixed: Support @typing.overload in regular Python files, not only in Python stubs

Update PyRemoveParameterQuickFix to remove parameter from overloads.
This commit is contained in:
Semyon Proshev
2017-04-06 16:32:18 +03:00
committed by Semyon Proshev
parent 0ee5f9152d
commit 986cfc4921
8 changed files with 104 additions and 4 deletions

View File

@@ -0,0 +1,18 @@
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