lint fixes

This commit is contained in:
Devaev Maxim
2020-05-22 14:36:01 +03:00
parent 08950a5fbd
commit 0fa0680bd7
6 changed files with 7 additions and 9 deletions

View File

@@ -365,7 +365,7 @@ class RfbClient(RfbClientStream): # pylint: disable=too-many-instance-attribute
}
while True:
msg_type = await self._read_number("B")
if (handler := handlers.get(msg_type)) is not None: # noqa: E203,E231
if (handler := handlers.get(msg_type)) is not None:
await handler() # type: ignore # mypy bug
else:
raise RfbError(f"Unknown message type: {msg_type}")