Skip to content

Commit 057fed2

Browse files
committed
Fixes erroneus naming
1 parent 85f5ad2 commit 057fed2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/ql/src/Expressions/CallArgs.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ private Keyword not_keyword_only_arg_objectapi(Call call, FunctionObject func) {
2626
* plus the number of keyword arguments that do not match keyword-only arguments (if the function does not take **kwargs).
2727
*/
2828

29-
private int positional_arg_count_objectapi_for_call_objectapi(Call call, Object callable) {
29+
private int positional_arg_count_for_call_objectapi(Call call, Object callable) {
3030
call = get_a_call_objectapi(callable).getNode() and
3131
exists(int positional_keywords |
3232
exists(FunctionObject func | func = get_function_or_initializer_objectapi(callable) |
@@ -103,7 +103,7 @@ predicate too_many_args_objectapi(Call call, Object callable, int limit) {
103103
callable instanceof ClassObject and
104104
call.getAFlowNode() = get_a_call_objectapi(callable) and limit = func.maxParameters() - 1
105105
) and
106-
positional_arg_count_objectapi_for_call_objectapi(call, callable) > limit
106+
positional_arg_count_for_call_objectapi(call, callable) > limit
107107
}
108108

109109
/** Holds if `call` has too many or too few arguments for `func` */

0 commit comments

Comments
 (0)