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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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