From 97a612be2de2923151d843f2e63c1b6e3fe721ed Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Wed, 10 Aug 2022 12:34:06 -0400 Subject: [PATCH] Common: Add EventSubscriber type --- monkey/common/event_queue/__init__.py | 1 + monkey/common/event_queue/types.py | 5 +++++ 2 files changed, 6 insertions(+) create mode 100644 monkey/common/event_queue/types.py diff --git a/monkey/common/event_queue/__init__.py b/monkey/common/event_queue/__init__.py index e69de29bb..de8c0494b 100644 --- a/monkey/common/event_queue/__init__.py +++ b/monkey/common/event_queue/__init__.py @@ -0,0 +1 @@ +from .types import EventSubscriber diff --git a/monkey/common/event_queue/types.py b/monkey/common/event_queue/types.py new file mode 100644 index 000000000..f78651306 --- /dev/null +++ b/monkey/common/event_queue/types.py @@ -0,0 +1,5 @@ +from typing import Callable + +from common.events import AbstractEvent + +EventSubscriber = Callable[[AbstractEvent], None]