Skip to content

Commit

Permalink
fix: Added missing argument to map()
Browse files Browse the repository at this point in the history
  • Loading branch information
JohanKarlbergg committed Jan 30, 2024
1 parent e8ab6d6 commit 08a76cb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions python/remotivelabs-broker/remotivelabs/broker/sync/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 08a76cb

Please sign in to comment.