Skip to content

Commit 268b13a

Browse files
author
Zibi Braniecki
committed
Do not require args when creating a CallExpression
1 parent 3d791a7 commit 268b13a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fluent/syntax/ast.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,10 +246,10 @@ def __init__(self, id, key, **kwargs):
246246
self.key = key
247247

248248
class CallExpression(Expression):
249-
def __init__(self, callee, args, **kwargs):
249+
def __init__(self, callee, args=None, **kwargs):
250250
super(CallExpression, self).__init__(**kwargs)
251251
self.callee = callee
252-
self.args = args
252+
self.args = args or []
253253

254254
class Attribute(SyntaxNode):
255255
def __init__(self, id, value, **kwargs):

0 commit comments

Comments
 (0)