You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After the addition of a pre_init method to the CallStatment node class it is not possible to construct a CallStatement without passing a keyword argument.
What are the steps to reproduce the bug?
importloki.irasirimportloki.expression.symbolsassymmyfun=sym.ProcedureSymbol(name='myfun')
call=ir.CallStatement(myfun, (sym.IntLiteral(1),)) # this fails# call = ir.CallStatement(name=myfun, arguments=(sym.IntLiteral(1),)) # this doesnt fail
Version
main branch
Platform (OS and architecture)
Mac OS
Relevant log output
File "callstmt_ctor_minimal_reproducible.py", line 5, in<module>
call = ir.CallStatement(myfun, (sym.IntLiteral(1),)) # this fails
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/loki-venv/lib/python3.11/site-packages/pydantic/_internal/_dataclasses.py", line 141, in __init__
s.__pydantic_validator__.validate_python(ArgsKwargs(args, kwargs), self_instance=s)
File "loki/loki/ir/nodes.py", line 1005, in pre_init
if'arguments'in values.kwargs:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: argument of type'NoneType' is not iterable
Accompanying data
No response
Organisation
No response
The text was updated successfully, but these errors were encountered:
What happened?
After the addition of a pre_init method to the CallStatment node class it is not possible to construct a CallStatement without passing a keyword argument.
What are the steps to reproduce the bug?
Version
main branch
Platform (OS and architecture)
Mac OS
Relevant log output
Accompanying data
No response
Organisation
No response
The text was updated successfully, but these errors were encountered: