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

View File

@ -131,7 +131,7 @@ class Win32Raw(Escpos):
logging.info("Win32Raw printer enabled") logging.info("Win32Raw printer enabled")
@dependency_win32print @dependency_win32print
def close(self): def close(self) -> None:
"""Close connection to default printer.""" """Close connection to default printer."""
if not self._device: if not self._device:
return return