From: Eric Masseran Date: Fri, 30 Jul 2021 17:49:40 +0000 (+0200) Subject: Fix parenthesis on condition X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ddfdc19e19d792087ed404cc182647bb00df184d;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git Fix parenthesis on condition --- diff --git a/lib/sqlalchemy/sql/compiler.py b/lib/sqlalchemy/sql/compiler.py index 6a55eea5ff..e78b7a0844 100644 --- a/lib/sqlalchemy/sql/compiler.py +++ b/lib/sqlalchemy/sql/compiler.py @@ -3459,7 +3459,9 @@ class SQLCompiler(Compiled): self.ctes = { cte: self.ctes[cte] for cte in self.ctes - if not cte.nesting and self.level_by_ctes[cte] == nesting_level + if not ( + cte.nesting and self.level_by_ctes[cte] == nesting_level + ) } ctes_recursive = any([cte.recursive for cte in ctes])