Skip to content

Commit 6488714

Browse files
committed
Python: Autoformat
1 parent 07ae402 commit 6488714

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

python/ql/src/semmle/python/objects/ObjectAPI.qll

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)