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
This complains that type_new is getting too many parameters. The extra parameter is a copy of the class of A, that is getting bound within super(), which is not meant to occur.
The parameters to type.__new__ are <class "A">, <class "A">, "A", (), {}.
Replacing super() with type does solve the problem.
Activity
Lynskylate commentedon Aug 15, 2019
I met same trouble as you when I try to import enum.py. I simplify the code.
windelbouwman commentedon Aug 18, 2019
I stumbled upon the implicit
__class__variable. This page might be related:youknowone commentedon Jul 17, 2020
Both of the reported code works now.