mirror of
https://github.com/python-escpos/python-escpos
synced 2025-09-13 09:09:58 +00:00
lp.py: reassure mypy
This commit is contained in:
@@ -188,6 +188,8 @@ class LP(Escpos):
|
|||||||
:param msg: arbitrary code to be printed
|
:param msg: arbitrary code to be printed
|
||||||
:type msg: bytes
|
:type msg: bytes
|
||||||
"""
|
"""
|
||||||
|
assert self.device is not None
|
||||||
|
assert self.device.stdin is not None
|
||||||
if self.device.stdin.writable():
|
if self.device.stdin.writable():
|
||||||
self.device.stdin.write(msg)
|
self.device.stdin.write(msg)
|
||||||
else:
|
else:
|
||||||
|
Reference in New Issue
Block a user