We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e86d838 commit 278b5d5Copy full SHA for 278b5d5
1 file changed
pykokkos/core/parsers/parser.py
@@ -369,14 +369,12 @@ def fix_decorator(
369
# no change needed
370
return entity_tree.decorator_list
371
372
- call_obj = ast.Call()
373
- call_obj.func = ast.Attribute(
+ func = ast.Attribute(
374
value=ast.Name(id=self.pk_import, ctx=ast.Load()),
375
attr="workunit",
376
ctx=ast.Load(),
377
)
378
- call_obj.args = []
379
- call_obj.keywords = []
+ call_obj = ast.Call(func=func, args=[], keywords=[])
380
381
for view, specifier_dict in updated_decorator.inferred_decorator.items():
382
call_obj.keywords.append(self.get_keyword_node(view, specifier_dict))
0 commit comments