From 3d46c19640d934166ab2b942e82c79e09cb9c609 Mon Sep 17 00:00:00 2001 From: Johan Rask Date: Mon, 29 Jan 2024 15:59:25 +0100 Subject: [PATCH] fix: Made Client.subscribe(on_signals=) optional --- python/remotivelabs-broker/remotivelabs/broker/sync/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/remotivelabs-broker/remotivelabs/broker/sync/client.py b/python/remotivelabs-broker/remotivelabs/broker/sync/client.py index 261b8cd..7e1d937 100644 --- a/python/remotivelabs-broker/remotivelabs/broker/sync/client.py +++ b/python/remotivelabs-broker/remotivelabs/broker/sync/client.py @@ -194,7 +194,7 @@ def subscribe( self, signal_names: List[str], namespaces: List[str], - on_signals: Callable[[SignalsInFrame], None], + on_signals: Optional[Callable[[SignalsInFrame], None]] = None, changed_values_only: bool = True, ): if on_signals is None and self.on_signals is None: