Update src/escpos/printer/usb.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:37 +02:00 committed by GitHub
parent fd5e4601d8
commit 0d82a00103
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -190,7 +190,7 @@ class Usb(Escpos):
return self.device.read(self.in_ep, 16) return self.device.read(self.in_ep, 16)
@dependency_usb @dependency_usb
def close(self): def close(self) -> None:
"""Release USB interface.""" """Release USB interface."""
if not self._device: if not self._device:
return return