mirror of
https://github.com/github/codeql.git
synced 2026-04-29 18:55:14 +02:00
Python: ObjectAPI to ValueAPI: WrongNameForArgumentInClassInstantiation: Adds preliminary modernization
This commit is contained in:
@@ -16,9 +16,9 @@
|
||||
import python
|
||||
import Expressions.CallArgs
|
||||
|
||||
from Call call, ClassObject cls, string name, FunctionObject init
|
||||
from Call call, ClassValue cls, string name, FunctionValue init
|
||||
where
|
||||
illegally_named_parameter_objectapi(call, cls, name) and
|
||||
init = get_function_or_initializer_objectapi(cls)
|
||||
illegally_named_parameter(call, cls, name) and
|
||||
init = get_function_or_initializer(cls)
|
||||
select call, "Keyword argument '" + name + "' is not a supported parameter name of $@.", init,
|
||||
init.getQualifiedName()
|
||||
|
||||
Reference in New Issue
Block a user