Python: Autoformat

I had not set up the pre-commit hook properly
This commit is contained in:
Rasmus Wriedt Larsen
2021-06-07 10:05:48 +02:00
parent e9acea8643
commit 9dcb26d151
2 changed files with 2 additions and 10 deletions

View File

@@ -1388,9 +1388,6 @@ private module PrivateDjango {
// ---------------------------------------------------------------------------
// Helpers
// ---------------------------------------------------------------------------
// ---------------------------------------------------------------------------
// Form and form field modeling
// ---------------------------------------------------------------------------
@@ -1458,7 +1455,6 @@ private module PrivateDjango {
// ---------------------------------------------------------------------------
// routing modeling
// ---------------------------------------------------------------------------
/**
* In order to recognize a class as being a django view class, based on the `as_view`
* call, we need to be able to track such calls on _any_ class. This is provided by

View File

@@ -44,9 +44,7 @@ private Expr lastDecoratorCall(Function func) {
* print(inst.my_method)
* ```
*/
private DataFlow::LocalSourceNode poorMansFunctionTracker(
DataFlow::TypeTracker t, Function func
) {
private DataFlow::LocalSourceNode poorMansFunctionTracker(DataFlow::TypeTracker t, Function func) {
t.start() and
(
not exists(func.getADecorator()) and
@@ -61,9 +59,7 @@ private DataFlow::LocalSourceNode poorMansFunctionTracker(
result.asExpr() = lastDecoratorCall(func)
)
or
exists(DataFlow::TypeTracker t2 |
result = poorMansFunctionTracker(t2, func).track(t2, t)
)
exists(DataFlow::TypeTracker t2 | result = poorMansFunctionTracker(t2, func).track(t2, t))
}
/**