From e1e119c27aaba2f15d5762ebedf9c916f96d4d58 Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Tue, 6 Sep 2022 12:57:24 -0400 Subject: [PATCH] Common: Add missing type hint for PyPubSubPublisherWrapper._refs --- monkey/common/event_queue/pypubsub_publisher_wrapper.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/monkey/common/event_queue/pypubsub_publisher_wrapper.py b/monkey/common/event_queue/pypubsub_publisher_wrapper.py index 71c7dda48..74b4b9a0c 100644 --- a/monkey/common/event_queue/pypubsub_publisher_wrapper.py +++ b/monkey/common/event_queue/pypubsub_publisher_wrapper.py @@ -1,5 +1,5 @@ import logging -from typing import Callable +from typing import Callable, List from pubsub.core import Publisher @@ -9,7 +9,7 @@ logger = logging.getLogger(__name__) class PyPubSubPublisherWrapper: def __init__(self, pypubsub_publisher: Publisher): self._pypubsub_publisher = pypubsub_publisher - self._refs = [] + self._refs: List[Callable] = [] def subscribe(self, topic_name: str, subscriber: Callable): try: