Skip to content

Commit 8c1cfe5

Browse files
committed
Python: Use getAKeywordOnlyArg instead of getAKwonlyarg
The result is the same, but `getAKeywordOnlyArg` is the method used everywhere else in the code.
1 parent c508e89 commit 8c1cfe5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/ql/src/semmle/python/Function.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ class Function extends Function_, Scope, AstNode {
9494
int getPositionalParameterCount() { result = count(this.getAnArg()) }
9595

9696
/** Gets the number of keyword-only parameters */
97-
int getKeywordOnlyParameterCount() { result = count(this.getAKwonlyarg()) }
97+
int getKeywordOnlyParameterCount() { result = count(this.getAKeywordOnlyArg()) }
9898

9999
/** Whether this function accepts a variable number of arguments. That is, whether it has a starred (*arg) parameter. */
100100
predicate hasVarArg() { exists(this.getVararg()) }

0 commit comments

Comments
 (0)