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:
parent
5062a09b0a
commit
59579c477d
@ -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")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user