Skip to content

Commit bc27882

Browse files
committed
fix: representation of aggregate operators with one argument
1 parent 29acebe commit bc27882

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

flamapy/core/models/ast.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,8 @@ def pretty_str(self) -> str:
122122
elif self.is_aggregate_op():
123123
if self.right is not None:
124124
res = f'{data}({left}, {right})'
125+
else:
126+
res = f'{data}({left})'
125127
else: # binary operation
126128
res = f'{left} {data} {right}'
127129
return res

0 commit comments

Comments
 (0)