Skip to content

Commit 278b5d5

Browse files
committed
Pass in args to ast.Call() initialization
1 parent e86d838 commit 278b5d5

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

pykokkos/core/parsers/parser.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -369,14 +369,12 @@ def fix_decorator(
369369
# no change needed
370370
return entity_tree.decorator_list
371371

372-
call_obj = ast.Call()
373-
call_obj.func = ast.Attribute(
372+
func = ast.Attribute(
374373
value=ast.Name(id=self.pk_import, ctx=ast.Load()),
375374
attr="workunit",
376375
ctx=ast.Load(),
377376
)
378-
call_obj.args = []
379-
call_obj.keywords = []
377+
call_obj = ast.Call(func=func, args=[], keywords=[])
380378

381379
for view, specifier_dict in updated_decorator.inferred_decorator.items():
382380
call_obj.keywords.append(self.get_keyword_node(view, specifier_dict))

0 commit comments

Comments
 (0)