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 object_database import Schema
subclass_schema = Schema("test_subclassing")
@subclass_schema.define
class BaseClass:
x = int
@subclass_schema.define
class DerivedClass(BaseClass):
y = int
assert issubclass(DerivedClass, BaseClass)
This is due to __bases__ and __mro__ not being set properly when the object is created in the define method of schema.py. Options:
Implement tp_base in the C
Generate a new set_bases() method on the object t that is called during the initialisation process.
The text was updated successfully, but these errors were encountered:
Repro:
This is due to
__bases__
and__mro__
not being set properly when the object is created in the define method of schema.py. Options:The text was updated successfully, but these errors were encountered: