mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fixed positive fault of base method signature matching inspection in case of named params and **kwargs (PY-1083)
This commit is contained in:
@@ -115,6 +115,9 @@ public class PyParameterListImpl extends PyBaseElementImpl<PyParameterListStub>
|
||||
if (nextParameter.isKeywordContainer() || nextParameter.isPositionalContainer()) {
|
||||
++i;
|
||||
}
|
||||
if (nextParameter.isKeywordContainer() && j<anotherParametersLength && anotherParameters[j] instanceof PyNamedParameter) {
|
||||
j++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -124,6 +127,9 @@ public class PyParameterListImpl extends PyBaseElementImpl<PyParameterListStub>
|
||||
if (nextParameter.isKeywordContainer() || nextParameter.isPositionalContainer()) {
|
||||
++j;
|
||||
}
|
||||
if (nextParameter.isKeywordContainer() && i<parametersLength && parameters[i] instanceof PyNamedParameter) {
|
||||
i++;
|
||||
}
|
||||
}
|
||||
}
|
||||
return (i >= parametersLength) && (j >= anotherParametersLength);
|
||||
|
||||
Reference in New Issue
Block a user