diff --git a/minos/common/model/event.py b/minos/common/model/event.py index 0d8f98b1..130d780e 100644 --- a/minos/common/model/event.py +++ b/minos/common/model/event.py @@ -15,17 +15,16 @@ Type, ) -from minos.common.exceptions import ( +from ..exceptions import ( MultiTypeMinosModelSequenceException, ) -from minos.common.importlib import ( +from ..importlib import ( import_module, ) -from minos.common.meta import ( +from ..meta import ( self_or_classmethod, ) -from minos.common.model import ( - Aggregate, +from .abc import ( MinosModel, ) @@ -35,9 +34,9 @@ class Event(MinosModel): topic: str model: str - items: list[Aggregate] + items: list[MinosModel] - def __init__(self, topic: str, items: list[Aggregate], model: str = None, *args, **kwargs): + def __init__(self, topic: str, items: list[MinosModel], model: str = None, *args, **kwargs): if model is None: model_cls = type(items[0]) model = model_cls.classname @@ -74,7 +73,7 @@ def _type_hints(self_or_cls) -> dict[str, Type]: return @property - def model_cls(self) -> Type[Aggregate]: + def model_cls(self) -> Type[MinosModel]: """Get the model class. :return: A type object.