Common: Add missing type hint for PyPubSubPublisherWrapper._refs
This commit is contained in:
parent
ba52eae8ed
commit
e1e119c27a
|
@ -1,5 +1,5 @@
|
||||||
import logging
|
import logging
|
||||||
from typing import Callable
|
from typing import Callable, List
|
||||||
|
|
||||||
from pubsub.core import Publisher
|
from pubsub.core import Publisher
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@ logger = logging.getLogger(__name__)
|
||||||
class PyPubSubPublisherWrapper:
|
class PyPubSubPublisherWrapper:
|
||||||
def __init__(self, pypubsub_publisher: Publisher):
|
def __init__(self, pypubsub_publisher: Publisher):
|
||||||
self._pypubsub_publisher = pypubsub_publisher
|
self._pypubsub_publisher = pypubsub_publisher
|
||||||
self._refs = []
|
self._refs: List[Callable] = []
|
||||||
|
|
||||||
def subscribe(self, topic_name: str, subscriber: Callable):
|
def subscribe(self, topic_name: str, subscriber: Callable):
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue