File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
python/ql/lib/semmle/python/objects Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -343,21 +343,25 @@ module Value {
343
343
* Callables include Python functions, built-in functions and bound-methods,
344
344
* but not classes.
345
345
*/
346
- class CallableValue extends Value instanceof CallableObjectInternal {
346
+ class CallableValue extends Value {
347
+ CallableValue ( ) { this instanceof CallableObjectInternal }
348
+
347
349
/**
348
350
* Holds if this callable never returns once called.
349
351
* For example, `sys.exit`
350
352
*/
351
- predicate neverReturns ( ) { super .neverReturns ( ) }
353
+ predicate neverReturns ( ) { this . ( CallableObjectInternal ) .neverReturns ( ) }
352
354
353
355
/** Gets the scope for this function, provided that it is a Python function. */
354
356
FunctionScope getScope ( ) { result = this .( PythonFunctionObjectInternal ) .getScope ( ) }
355
357
356
358
/** Gets the `n`th parameter node of this callable. */
357
- NameNode getParameter ( int n ) { result = super .getParameter ( n ) }
359
+ NameNode getParameter ( int n ) { result = this . ( CallableObjectInternal ) .getParameter ( n ) }
358
360
359
361
/** Gets the `name`d parameter node of this callable. */
360
- NameNode getParameterByName ( string name ) { result = super .getParameterByName ( name ) }
362
+ NameNode getParameterByName ( string name ) {
363
+ result = this .( CallableObjectInternal ) .getParameterByName ( name )
364
+ }
361
365
362
366
/**
363
367
* Gets the argument in `call` corresponding to the `n`'th positional parameter of this callable.
You can’t perform that action at this time.
0 commit comments