Skip to content

Commit d18ac0b

Browse files
felixdivomergify-bot
authored and
mergify-bot
committed
Run black formatter
1 parent 7a8e3b1 commit d18ac0b

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

can/interfaces/pcan/pcan.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,9 @@ def send(self, msg, timeout=None):
557557
result = self.m_objPCANBasic.Write(self.m_PcanHandle, CANMsg)
558558

559559
if result != PCAN_ERROR_OK:
560-
raise PcanCanOperationError("Failed to send: " + self._get_formatted_error(result))
560+
raise PcanCanOperationError(
561+
"Failed to send: " + self._get_formatted_error(result)
562+
)
561563

562564
def flash(self, flash):
563565
"""

test/test_pcan.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,8 @@ def test_state(self, name, bus_state: BusState, expected_parameter) -> None:
290290
call_list = self.mock_pcan.SetValue.call_args_list
291291
last_call_args_list = call_list[-1][0]
292292
self.assertEqual(
293-
last_call_args_list, (PCAN_USBBUS1, PCAN_LISTEN_ONLY, expected_parameter)
293+
last_call_args_list,
294+
(PCAN_USBBUS1, PCAN_LISTEN_ONLY, expected_parameter),
294295
)
295296

296297
def test_detect_available_configs(self) -> None:

0 commit comments

Comments
 (0)