File tree 1 file changed +4
-6
lines changed
1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -2760,7 +2760,7 @@ def self_group(
2760
2760
self , against : Optional [OperatorType ] = None
2761
2761
) -> ClauseElement :
2762
2762
if (
2763
- against is not None
2763
+ against
2764
2764
and self .group
2765
2765
and operators .is_precedent (self .operator , against )
2766
2766
):
@@ -2789,7 +2789,7 @@ def self_group(
2789
2789
self , against : Optional [OperatorType ] = None
2790
2790
) -> ColumnElement [Any ]:
2791
2791
if (
2792
- against is not None
2792
+ against
2793
2793
and self .group
2794
2794
and operators .is_precedent (self .operator , against )
2795
2795
or (
@@ -3654,7 +3654,7 @@ def self_group(
3654
3654
self , against : Optional [OperatorType ] = None
3655
3655
) -> ColumnElement [Any ]:
3656
3656
if (
3657
- against is not None
3657
+ against
3658
3658
and self .operator
3659
3659
and operators .is_precedent (self .operator , against )
3660
3660
):
@@ -4393,9 +4393,7 @@ def over(
4393
4393
def self_group (
4394
4394
self , against : Optional [OperatorType ] = None
4395
4395
) -> ColumnElement [_T ]:
4396
- if against is not None and operators .is_precedent (
4397
- operators .filter_op , against
4398
- ):
4396
+ if against and operators .is_precedent (operators .filter_op , against ):
4399
4397
return Grouping (self )
4400
4398
else :
4401
4399
return self
You can’t perform that action at this time.
0 commit comments