mirror of
https://github.com/python-escpos/python-escpos
synced 2025-09-13 09:09:58 +00:00
Update src/escpos/printer/serial.py
Add return type Co-authored-by: Patrick Kanzler <4189642+patkan@users.noreply.github.com>
This commit is contained in:
@@ -165,7 +165,7 @@ class Serial(Escpos):
|
|||||||
"""Read the data buffer and return it to the caller."""
|
"""Read the data buffer and return it to the caller."""
|
||||||
return self.device.read(16)
|
return self.device.read(16)
|
||||||
|
|
||||||
def close(self):
|
def close(self) -> None:
|
||||||
"""Close Serial interface."""
|
"""Close Serial interface."""
|
||||||
if not self._device:
|
if not self._device:
|
||||||
return
|
return
|
||||||
|
Reference in New Issue
Block a user