[python] refactoring: Avoid returning nulls from getArguments()

GitOrigin-RevId: 8dac4c1d5e1a258eb4c985700f4171b91e451a79
This commit is contained in:
Mikhail Golubev
2025-11-25 18:58:25 +00:00
committed by intellij-monorepo-bot
parent ac5f5705e0
commit cd0e487f6c
7 changed files with 21 additions and 25 deletions
@@ -28,8 +28,8 @@ public interface PyCallSiteExpression extends PyAstCallSiteExpression, PyExpress
return (PyExpression)getReceiver((PyAstCallable)resolvedCallee);
}
default @NotNull List<PyExpression> getArguments(@Nullable PyCallable resolvedCallee) {
default @NotNull List<@NotNull PyExpression> getArguments(@Nullable PyCallable resolvedCallee) {
//noinspection unchecked
return (List<PyExpression>)getArguments((PyAstCallable)resolvedCallee);
return (List<@NotNull PyExpression>)getArguments((PyAstCallable)resolvedCallee);
}
}