From 08a76cbb7f0875d038e4c411f28b049f729bee3b Mon Sep 17 00:00:00 2001 From: Johan Karlberg Date: Tue, 30 Jan 2024 08:54:46 +0100 Subject: [PATCH] fix: Added missing argument to map() --- .../remotivelabs-broker/remotivelabs/broker/sync/client.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/python/remotivelabs-broker/remotivelabs/broker/sync/client.py b/python/remotivelabs-broker/remotivelabs/broker/sync/client.py index 7e1d937..f9d014b 100644 --- a/python/remotivelabs-broker/remotivelabs/broker/sync/client.py +++ b/python/remotivelabs-broker/remotivelabs/broker/sync/client.py @@ -230,10 +230,9 @@ def _on_signals(self, signals_in_frame: network_api.Signals, callback): Updates "local" callback or global on_signals callback if local callback is None """ if callback is not None: - # pylint: disable=unnecessary-lambda - callback(SignalsInFrame(list(map(lambda s: SignalValue(s), signals_in_frame)))) # type: ignore[call-overload] + callback(SignalsInFrame(list(map(SignalValue, signals_in_frame)))) # type: ignore[call-overload] elif self.on_signals is not None: - self.on_signals(SignalsInFrame(list(map(SignalValue)))) # type: ignore[call-overload] + self.on_signals(SignalsInFrame(list(map(SignalValue, signals_in_frame)))) # type: ignore[call-overload] def list_signal_names(self) -> List[SignalIdentifier]: # Lists available signals