metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases
Asked Answered
R

0

1

I am trying to implement multiple inheritance with Partitioned model and Aggregate Model

class AdAgencyLocationPurposeAggregate(PostgresAggregateModel,PostgresPartitionedModel):

PostgresAggregateModel:

class PostgresAggregateModel(PostgresModel,metaclass=PostgresAggregateModelMeta ):

PostgresPartitionedModel

class PostgresPartitionedModel( PostgresModel,metaclass=PostgresPartitionedModelMeta ):

Reimport answered 15/12, 2021 at 8:53 Comment(2)
You can't inherit from two different metaclasses.Postliminy
@Postliminy what will be the possible solution then to inherit from two different classes?Reimport

© 2022 - 2024 — McMap. All rights reserved.