File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -443,7 +443,7 @@ def clause(self):
443
443
return self .clause_with_joiner ('and' )
444
444
445
445
def match (self , item ):
446
- return all ([ q .match (item ) for q in self .subqueries ] )
446
+ return all (q .match (item ) for q in self .subqueries )
447
447
448
448
449
449
class OrQuery (MutableCollectionQuery ):
@@ -453,7 +453,7 @@ def clause(self):
453
453
return self .clause_with_joiner ('or' )
454
454
455
455
def match (self , item ):
456
- return any ([ q .match (item ) for q in self .subqueries ] )
456
+ return any (q .match (item ) for q in self .subqueries )
457
457
458
458
459
459
class NotQuery (Query ):
Original file line number Diff line number Diff line change @@ -74,6 +74,9 @@ Bug fixes:
74
74
* :doc: `/dev/library `: Use slow queries for flexible attributes in aunique.
75
75
:bug: `2678 ` :bug: `3553 `
76
76
77
+ * :doc: `/reference/query `: Use short-circuit evaluation in AndQuery and OrQuery
78
+ :bug: `4145 `
79
+
77
80
1.5.0 (August 19, 2021)
78
81
-----------------------
79
82
You can’t perform that action at this time.
0 commit comments