Closed alexowens90 closed 2 weeks ago
How does this affect truthiness tests like,
q = QueryBuilder() if some_test() else None if q: # foo else: # bar
It doesn't, the __bool__
method has been implemented on the ExpressionNode
class (which is what is returned by q[col]
provided col
is a string), not on the QueryBuilder
class itself
Reference Issues/PRs
Fixes #1970