summaryrefslogtreecommitdiff
path: root/django/db/models/functions/math.py
diff options
context:
space:
mode:
Diffstat (limited to 'django/db/models/functions/math.py')
-rw-r--r--django/db/models/functions/math.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/django/db/models/functions/math.py b/django/db/models/functions/math.py
index 460143ba5a..5fa4654a84 100644
--- a/django/db/models/functions/math.py
+++ b/django/db/models/functions/math.py
@@ -47,9 +47,11 @@ class ATan2(NumericOutputFieldMixin, Func):
clone = self.copy()
clone.set_source_expressions(
[
- Cast(expression, FloatField())
- if isinstance(expression.output_field, IntegerField)
- else expression
+ (
+ Cast(expression, FloatField())
+ if isinstance(expression.output_field, IntegerField)
+ else expression
+ )
for expression in self.get_source_expressions()[::-1]
]
)