mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
PY-15867 Use methods of PyNamedParameter to recognize keyword and positional containers
As suggested in IDEA-CR-3344.
This commit is contained in:
@@ -286,13 +286,13 @@ public class AddCallSuperQuickFix implements LocalQuickFix {
|
||||
if (param.isSelf()) {
|
||||
selfParam = param;
|
||||
}
|
||||
else if (param.getText().equals("*")) {
|
||||
else if (param instanceof PySingleStarParameter) {
|
||||
singleStarParam = param;
|
||||
}
|
||||
else if (param.getText().startsWith("**")) {
|
||||
else if (param.getAsNamed() != null && param.getAsNamed().isKeywordContainer()) {
|
||||
keywordContainer = param;
|
||||
}
|
||||
else if (param.getText().startsWith("*")) {
|
||||
else if (param.getAsNamed() != null && param.getAsNamed().isPositionalContainer()) {
|
||||
positionalContainer = param;
|
||||
}
|
||||
else if (param.getAsNamed() == null || !param.getAsNamed().isKeywordOnly()) {
|
||||
|
||||
Reference in New Issue
Block a user