Let publish_entities return the list of transformed_entities

This commit is contained in:
Fabio Manganiello 2023-02-08 02:09:34 +01:00
parent e04870209e
commit 35719b0da9
Signed by untrusted user: blacklight
GPG key ID: D90FBA7F76362774

View file

@ -78,7 +78,9 @@ class EntityManager(ABC):
return entities
def publish_entities(self, entities: Optional[Collection[Any]]):
def publish_entities(
self, entities: Optional[Collection[Any]]
) -> Collection[Entity]:
"""
Publishes a list of entities. The downstream consumers include:
@ -99,6 +101,7 @@ class EntityManager(ABC):
)
publish_entities(transformed_entities)
return transformed_entities
def register_entity_manager(cls: Type[EntityManager]):