Commit ed7c54e9 authored by Kirill Smelkov's avatar Kirill Smelkov

X allow `cdef class Klass(bytes)`

TODO check that no fields are added and then we can safely allow
inheritance from PyVarObject.

See https://github.com/cython/cython/issues/711 for details.
parent 5266b9c9
......@@ -4756,7 +4756,7 @@ class CClassDefNode(ClassDefNode):
base_type.is_final_type:
error(base.pos, "Base class '%s' of type '%s' is final" % (
base_type, self.class_name))
elif base_type.is_builtin_type and \
elif False and base_type.is_builtin_type and \
base_type.name in ('tuple', 'str', 'bytes'):
error(base.pos, "inheritance from PyVarObject types like '%s' is not currently supported"
% base_type.name)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment