Common: Add missing type hint for PyPubSubPublisherWrapper._refs

This commit is contained in:
Mike Salvatore 2022-09-06 12:57:24 -04:00
parent ba52eae8ed
commit e1e119c27a
1 changed files with 2 additions and 2 deletions

View File

@ -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: