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 @@ -2754,7 +2754,7 @@ def self_group(
2754
2754
self , against : Optional [OperatorType ] = None
2755
2755
) -> ClauseElement :
2756
2756
if (
2757
- against is not None
2757
+ against
2758
2758
and self .group
2759
2759
and operators .is_precedent (self .operator , against )
2760
2760
):
@@ -2783,7 +2783,7 @@ def self_group(
2783
2783
self , against : Optional [OperatorType ] = None
2784
2784
) -> ColumnElement [Any ]:
2785
2785
if (
2786
- against is not None
2786
+ against
2787
2787
and self .group
2788
2788
and operators .is_precedent (self .operator , against )
2789
2789
or (
@@ -3623,7 +3623,7 @@ def self_group(
3623
3623
self , against : Optional [OperatorType ] = None
3624
3624
) -> ColumnElement [Any ]:
3625
3625
if (
3626
- against is not None
3626
+ against
3627
3627
and self .operator
3628
3628
and operators .is_precedent (self .operator , against )
3629
3629
):
@@ -4360,9 +4360,7 @@ def over(
4360
4360
def self_group (
4361
4361
self , against : Optional [OperatorType ] = None
4362
4362
) -> ColumnElement [_T ]:
4363
- if against is not None and operators .is_precedent (
4364
- operators .filter_op , against
4365
- ):
4363
+ if against and operators .is_precedent (operators .filter_op , against ):
4366
4364
return Grouping (self )
4367
4365
else :
4368
4366
return self
You can’t perform that action at this time.
0 commit comments