diff --git a/src/escpos/printer/cups.py b/src/escpos/printer/cups.py index a7ee2c8..e2eea8d 100644 --- a/src/escpos/printer/cups.py +++ b/src/escpos/printer/cups.py @@ -167,7 +167,6 @@ class CupsPrinter(Escpos): """Append any command sent in raw format to temporary file. :param msg: arbitrary code to be printed - :type msg: bytes """ self.pending_job = True try: diff --git a/src/escpos/printer/lp.py b/src/escpos/printer/lp.py index e8b7bcf..ff22e05 100644 --- a/src/escpos/printer/lp.py +++ b/src/escpos/printer/lp.py @@ -186,7 +186,6 @@ class LP(Escpos): """Write raw command(s) to the printer. :param msg: arbitrary code to be printed - :type msg: bytes """ assert self.device is not None assert self.device.stdin is not None diff --git a/src/escpos/printer/network.py b/src/escpos/printer/network.py index 7a2d5c1..d033856 100644 --- a/src/escpos/printer/network.py +++ b/src/escpos/printer/network.py @@ -114,7 +114,6 @@ class Network(Escpos): """Print any command sent in raw format. :param msg: arbitrary code to be printed - :type msg: bytes """ assert self.device self.device.sendall(msg) diff --git a/src/escpos/printer/serial.py b/src/escpos/printer/serial.py index 66592af..28ada62 100644 --- a/src/escpos/printer/serial.py +++ b/src/escpos/printer/serial.py @@ -155,11 +155,10 @@ class Serial(Escpos): return logging.info("Serial printer enabled") - def _raw(self, msg) -> None: + def _raw(self, msg: bytes) -> None: """Print any command sent in raw format. :param msg: arbitrary code to be printed - :type msg: bytes """ assert self.device self.device.write(msg) diff --git a/src/escpos/printer/usb.py b/src/escpos/printer/usb.py index 20743ad..e5d2dbe 100644 --- a/src/escpos/printer/usb.py +++ b/src/escpos/printer/usb.py @@ -185,7 +185,6 @@ class Usb(Escpos): """Print any command sent in raw format. :param msg: arbitrary code to be printed - :type msg: bytes """ assert self.device self.device.write(self.out_ep, msg, self.timeout) diff --git a/src/escpos/printer/win32raw.py b/src/escpos/printer/win32raw.py index 8de56eb..d084436 100644 --- a/src/escpos/printer/win32raw.py +++ b/src/escpos/printer/win32raw.py @@ -152,7 +152,6 @@ class Win32Raw(Escpos): """Print any command sent in raw format. :param msg: arbitrary code to be printed - :type msg: bytes """ if self.printer_name is None: raise DeviceNotFoundError("Printer not found")