Closed kirkatia98 closed 9 months ago
def __init__(self, order_line, ledger): super().__init__(order_line, ledger)
The code works without issue without mprof, but when running with mprof, this issue occurs.
Traceback (most recent call last): File "main.py", line 229, in <module> (order, executed) = parse_order_into_ledger(line[1:], my_ledger) File "main.py", line 192, in parse_order_into_ledger order_object = CancelOrder(order_string, ledger) File "main.py", line 172, in __init__ super().__init__(order_line, ledger) TypeError: super() takes at least 1 argument (0 given)
Replacing the call to super( ). init( ) with the code itself resolves the issue.
The code works without issue without mprof, but when running with mprof, this issue occurs.
Replacing the call to super( ). init( ) with the code itself resolves the issue.