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:
parent
59579c477d
commit
0e41b8414e
@ -118,7 +118,7 @@ class Network(Escpos):
|
||||
"""Read data from the TCP socket."""
|
||||
return self.device.recv(16)
|
||||
|
||||
def close(self):
|
||||
def close(self) -> None:
|
||||
"""Close TCP connection."""
|
||||
if not self._device:
|
||||
return
|
||||
|
Loading…
x
Reference in New Issue
Block a user