-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Labels
Milestone
Description
class ABC:
def __init_subclass__(cls):
print(cls)
class SubClass(ABC):
passIf you run this with python directly, it gives:
<class '__main__.SubClass'>
But after I compile it with cython, it gives:
TypeError Traceback (most recent call last)
<ipython-input-1-a0954f22e2a4> in <module>
----> 1 import test
test.pyx in init test()
TypeError: __init_subclass__() takes exactly one argument (0 given)
How to solve it?
Reactions are currently unavailable