From 2af47372b020393c2c12bfdd6a14ad4244a394d6 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Thu, 28 Feb 2019 01:28:51 +0100 Subject: [PATCH] Added docstring to EventGenerator class --- platypush/event/__init__.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/platypush/event/__init__.py b/platypush/event/__init__.py index 6fac9b1b9..7e364850e 100644 --- a/platypush/event/__init__.py +++ b/platypush/event/__init__.py @@ -3,6 +3,12 @@ import threading class EventGenerator(object): + """ + Abstract class for event generators. It allows to fire events to the bus and + trigger/register/unregister custom callback handlers associated to event + types. Both plugins and backends extend this class. + """ + def __init__(self, *args, **kwargs): self._event_handlers = {} # Event type => callback map