From 39b3dfbd88a9e84ca62bfe29199b6b81597a309b Mon Sep 17 00:00:00 2001 From: Steven B <51370195+sdb9696@users.noreply.github.com> Date: Tue, 29 Oct 2024 17:51:41 +0000 Subject: [PATCH] Fix mypy errors in parse_pcap_klap --- devtools/parse_pcap_klap.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/devtools/parse_pcap_klap.py b/devtools/parse_pcap_klap.py index b2cdc938e..b291b0d43 100755 --- a/devtools/parse_pcap_klap.py +++ b/devtools/parse_pcap_klap.py @@ -272,6 +272,7 @@ def main( case "/app/request": if packet.ip.dst != device_ip: continue + assert isinstance(data, str) # noqa: S101 message = bytes.fromhex(data) try: plaintext = operator.decrypt(message) @@ -284,6 +285,7 @@ def main( case "/app/handshake1": if packet.ip.dst != device_ip: continue + assert isinstance(data, str) # noqa: S101 message = bytes.fromhex(data) operator.local_seed = message response = None