Enable change signature refactoring for annotated functions (PY-42285)

GitOrigin-RevId: e7d95d251d59d11cb8c9d0b7f20c053ece8dceff
This commit is contained in:
Semyon Proshev
2020-06-08 18:00:50 +03:00
committed by intellij-monorepo-bot
parent 15b09ff212
commit 8d5ab620b2
@@ -22,8 +22,6 @@ class PySuggestedRefactoringSupport : SuggestedRefactoringSupport {
return element is PyFunction &&
element.name.let { it != null && PyNames.isIdentifier(it) } &&
element.property == null &&
element.annotation == null &&
element.parameterList.parameters.none { it.asNamed?.annotation != null } &&
!PyiUtil.isOverload(element, TypeEvalContext.codeAnalysis(element.project, element.containingFile))
}