Common: Add type hint ty PyPubSubEventQueue constructor

This commit is contained in:
Mike Salvatore 2022-08-10 07:29:13 -04:00
parent 6ecb2f4d49
commit 416cb30577
1 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,7 @@
from typing import Callable
from common.events import AbstractEvent
from pubsub.core import Publisher
from .i_event_queue import IEventQueue
@ -8,7 +9,7 @@ INTERNAL_ALL_EVENT_TYPES_TOPIC = "internal_all_event_types"
class PyPubSubEventQueue(IEventQueue):
def __init__(self, pypubsub_publisher):
def __init__(self, pypubsub_publisher: Publisher):
self._pypubsub_publisher = pypubsub_publisher
def subscribe_all(self, subscriber: Callable[[AbstractEvent], None]):