mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
PY-18788 Don't generate type annotations for "self" parameters
This commit is contained in:
committed by
Andrey Vlasovskikh
parent
c81fcb5004
commit
243c730c82
+1
-1
@@ -203,7 +203,7 @@ public class PyAnnotateTypesIntention implements IntentionAction {
|
||||
PyParameter[] params = function.getParameterList().getParameters();
|
||||
|
||||
for (int i = params.length - 1; i >= 0; i--) {
|
||||
if (params[i] instanceof PyNamedParameter) {
|
||||
if (params[i] instanceof PyNamedParameter && !params[i].isSelf()) {
|
||||
params[i] = annotateParameter(project, editor, (PyNamedParameter)params[i], false);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user