mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-04 12:17:12 +07:00
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:
committed by
Semyon Proshev
parent
0ee5f9152d
commit
986cfc4921
@@ -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
|
||||
Reference in New Issue
Block a user