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:
Benito López 2023-09-25 18:46:16 +02:00 committed by GitHub
parent 0e41b8414e
commit fd5e4601d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -165,7 +165,7 @@ class Serial(Escpos):
"""Read the data buffer and return it to the caller."""
return self.device.read(16)
def close(self):
def close(self) -> None:
"""Close Serial interface."""
if not self._device:
return