From 8d5ab620b2050eecdae20582cedbf5681f12f369 Mon Sep 17 00:00:00 2001 From: Semyon Proshev Date: Mon, 1 Jun 2020 20:50:43 +0300 Subject: [PATCH] Enable change signature refactoring for annotated functions (PY-42285) GitOrigin-RevId: e7d95d251d59d11cb8c9d0b7f20c053ece8dceff --- .../refactoring/suggested/PySuggestedRefactoringSupport.kt | 2 -- 1 file changed, 2 deletions(-) diff --git a/python/src/com/jetbrains/python/refactoring/suggested/PySuggestedRefactoringSupport.kt b/python/src/com/jetbrains/python/refactoring/suggested/PySuggestedRefactoringSupport.kt index a1fb6aa9f59a..dc42ea6d2019 100644 --- a/python/src/com/jetbrains/python/refactoring/suggested/PySuggestedRefactoringSupport.kt +++ b/python/src/com/jetbrains/python/refactoring/suggested/PySuggestedRefactoringSupport.kt @@ -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)) }