File tree Expand file tree Collapse file tree
python/ql/src/semmle/python/objects Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -425,7 +425,7 @@ class CallableValue extends Value {
425425 or
426426 exists ( int n |
427427 call .getArg ( n ) = result and
428- this .getParameter ( n + offset ) .getId ( ) = name
428+ this .getParameter ( n + offset ) .getId ( ) = name
429429 )
430430 or
431431 called instanceof BoundMethodObjectInternal and
@@ -728,9 +728,11 @@ class PythonFunctionValue extends FunctionValue {
728728 override ClassValue getARaisedType ( ) { scope_raises ( result , this .getScope ( ) ) }
729729
730730 override ClassValue getAnInferredReturnType ( ) {
731- /* We have to do a special version of this because builtin functions have no
731+ /*
732+ * We have to do a special version of this because builtin functions have no
732733 * explicit return nodes that we can query and get the class of.
733734 */
735+
734736 result = this .getAReturnedNode ( ) .pointsTo ( ) .getClass ( )
735737 }
736738}
@@ -753,9 +755,11 @@ class BuiltinFunctionValue extends FunctionValue {
753755 }
754756
755757 override ClassValue getAnInferredReturnType ( ) {
756- /* We have to do a special version of this because builtin functions have no
758+ /*
759+ * We have to do a special version of this because builtin functions have no
757760 * explicit return nodes that we can query and get the class of.
758761 */
762+
759763 result = TBuiltinClassObject ( this .( BuiltinFunctionObjectInternal ) .getReturnType ( ) )
760764 }
761765}
You can’t perform that action at this time.
0 commit comments