lp.py: reassure mypy

This commit is contained in:
Alexandre Detiste 2023-12-13 21:29:25 +01:00
parent fb6b9d94a2
commit 11474723e2

View File

@ -188,6 +188,8 @@ class LP(Escpos):
:param msg: arbitrary code to be printed
:type msg: bytes
"""
assert self.device is not None
assert self.device.stdin is not None
if self.device.stdin.writable():
self.device.stdin.write(msg)
else: