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
...
return type.new(meta, classname, bases, classDict)
TypeError: Error when calling the metaclass bases
metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases
It is caused by using __metaclass__ in line 245 in __init__.py:
Hi @TheProdigyFilippo - this behaviour has changed in six 1.11.0 (probably because of benjaminp/six#191), so if you want you can freeze six version at 1.10.0 or make PR to dj.choices with removing __metaclass__ property.
When running
from dj.choices import Choices
exception occurs:
It is caused by using
__metaclass__
in line 245 in__init__.py
:Probably
__metaclass__
is not needed when six.with_metaclass is used. Deleting__metaclass__
fixes the errorThe text was updated successfully, but these errors were encountered: