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
from dataclasses import dataclass
@dataclass()
class BookOrder:
id: int
time: int
action: str
value: float
quantity: float
order = BookOrder(-1, -1, "-1", -1, -1)
def printme():
print(str(order))
printme()
This is the error:
File "main.pyx", line 11, in init main
order = BookOrder(-1, -1, "-1", -1, -1)
ImportError: Building module main failed: ['TypeError: __init__() takes 1 positional argument but 6 were given\n']
The text was updated successfully, but these errors were encountered:
This is the code I'm trying to run in Cython:
This is the error:
The text was updated successfully, but these errors were encountered: