From 35719b0da90e16f10f8ee6e72c14b88deaee7483 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Wed, 8 Feb 2023 02:09:34 +0100 Subject: [PATCH] Let `publish_entities` return the list of transformed_entities --- platypush/entities/_managers/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/platypush/entities/_managers/__init__.py b/platypush/entities/_managers/__init__.py index cb3cdcf35..e08cec7f0 100644 --- a/platypush/entities/_managers/__init__.py +++ b/platypush/entities/_managers/__init__.py @@ -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]):