mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
PY-84859 Fix IndexOutOfBounds in PyCallableTypeImpl#dropSelf
GitOrigin-RevId: 06b4772a2586e5cac79a2dfc0ac03f9bd0fa3d95
This commit is contained in:
committed by
intellij-monorepo-bot
parent
4d9d9b9a2c
commit
3358fb505a
@@ -167,7 +167,7 @@ public class PyCallableTypeImpl implements PyCallableType {
|
||||
@Override
|
||||
public @NotNull PyCallableType dropSelf(@NotNull TypeEvalContext context) {
|
||||
final List<PyCallableParameter> parameters = getParameters(context);
|
||||
if (parameters != null && myCallable instanceof PyFunction function) {
|
||||
if (!ContainerUtil.isEmpty(parameters) && myCallable instanceof PyFunction function) {
|
||||
final List<PyCallableParameter> functionParameters = function.getParameters(context);
|
||||
|
||||
if (!ContainerUtil.isEmpty(functionParameters) && functionParameters.get(0).isSelf()) {
|
||||
|
||||
Reference in New Issue
Block a user