Skip to content

Commit 8f1ee7a

Browse files
committed
chore: update python can to 4.6.1
1 parent 958cf2c commit 8f1ee7a

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/pykiso/lib/connectors/cc_pcan_can/trc_handler.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def __repr__(self) -> str:
7070
else:
7171
args = [
7272
f"timestamp={self.timestamp}",
73-
f"arbitration_id={self.arbitration_id: #x}",
73+
f"arbitration_id={self.arbitration_id:#x}", # noqa: E231
7474
f"is_extended_id={self.is_extended_id}",
7575
]
7676

@@ -86,7 +86,7 @@ def __repr__(self) -> str:
8686
if self.channel is not None:
8787
args.append(f"channel={self.channel!r}")
8888

89-
data = [f"{byte: #02x}" for byte in self.data]
89+
data = [f"{byte:#02x}" for byte in self.data] # noqa: E231
9090
args += [f"dlc={self.dlc}", f"data=[{', '.join(data)}]"]
9191

9292
if self.is_fd:
@@ -253,11 +253,11 @@ def _format_message_by_format(self, msg: TypedMessage, channel: int):
253253
arb_id = f"{msg.arbitration_id}"
254254
else:
255255
if msg.is_extended_id:
256-
arb_id = f"{msg.arbitration_id: 07X}"
256+
arb_id = f"{msg.arbitration_id:07X}" # noqa: E231
257257
else:
258-
arb_id = f"{msg.arbitration_id: 04X}"
258+
arb_id = f"{msg.arbitration_id:04X}" # noqa: E231
259259

260-
data = [f"{byte: 02X}" for byte in msg.data]
260+
data = [f"{byte:02X}" for byte in msg.data] # noqa: E231
261261

262262
# For the time python-can was doing subtraction with the first message timestamp
263263
# which is incorrect. It should be with the start time of the trace otherwise the

0 commit comments

Comments
 (0)