1
0
mirror of https://github.com/python-escpos/python-escpos synced 2025-09-13 09:09:58 +00:00

Update src/escpos/printer/lp.py

Add return type

Co-authored-by: Patrick Kanzler <4189642+patkan@users.noreply.github.com>
This commit is contained in:
Benito López
2023-09-25 18:45:33 +02:00
committed by GitHub
parent 5062a09b0a
commit 59579c477d

View File

@@ -155,7 +155,7 @@ class LP(Escpos):
self.device.terminate() self.device.terminate()
self._device = False self._device = False
def flush(self): def flush(self) -> None:
"""End line and wait for new commands.""" """End line and wait for new commands."""
if self.device.stdin.writable(): if self.device.stdin.writable():
self.device.stdin.write(b"\n") self.device.stdin.write(b"\n")