Update src/escpos/printer/network.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:45:55 +02:00 committed by GitHub
parent 59579c477d
commit 0e41b8414e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -118,7 +118,7 @@ class Network(Escpos):
"""Read data from the TCP socket.""" """Read data from the TCP socket."""
return self.device.recv(16) return self.device.recv(16)
def close(self): def close(self) -> None:
"""Close TCP connection.""" """Close TCP connection."""
if not self._device: if not self._device:
return return