Skip to content

Commit

Permalink
driver: add type assertion to appease mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
tangentstorm committed Feb 6, 2024
1 parent 7622ebd commit 34b1fb1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tanco/driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,7 @@ async def ws_talk(self, ws: w.WebSocketCommonProtocol):
self.ensure_target()

async for msg in ws:
assert isinstance(msg, str)
if self.end_cmd in msg:
await ws.send("WARNING: ';' in message, ignoring")
continue
Expand Down

0 comments on commit 34b1fb1

Please sign in to comment.