remove type comment where type is annotated

This commit is contained in:
Patrick Kanzler 2023-12-15 15:26:54 +01:00
parent d68f187d64
commit 5c5acff16c
6 changed files with 1 additions and 7 deletions

View File

@ -167,7 +167,6 @@ class CupsPrinter(Escpos):
"""Append any command sent in raw format to temporary file. """Append any command sent in raw format to temporary file.
:param msg: arbitrary code to be printed :param msg: arbitrary code to be printed
:type msg: bytes
""" """
self.pending_job = True self.pending_job = True
try: try:

View File

@ -186,7 +186,6 @@ class LP(Escpos):
"""Write raw command(s) to the printer. """Write raw command(s) to the printer.
:param msg: arbitrary code to be printed :param msg: arbitrary code to be printed
:type msg: bytes
""" """
assert self.device is not None assert self.device is not None
assert self.device.stdin is not None assert self.device.stdin is not None

View File

@ -114,7 +114,6 @@ class Network(Escpos):
"""Print any command sent in raw format. """Print any command sent in raw format.
:param msg: arbitrary code to be printed :param msg: arbitrary code to be printed
:type msg: bytes
""" """
assert self.device assert self.device
self.device.sendall(msg) self.device.sendall(msg)

View File

@ -155,11 +155,10 @@ class Serial(Escpos):
return return
logging.info("Serial printer enabled") logging.info("Serial printer enabled")
def _raw(self, msg) -> None: def _raw(self, msg: bytes) -> None:
"""Print any command sent in raw format. """Print any command sent in raw format.
:param msg: arbitrary code to be printed :param msg: arbitrary code to be printed
:type msg: bytes
""" """
assert self.device assert self.device
self.device.write(msg) self.device.write(msg)

View File

@ -185,7 +185,6 @@ class Usb(Escpos):
"""Print any command sent in raw format. """Print any command sent in raw format.
:param msg: arbitrary code to be printed :param msg: arbitrary code to be printed
:type msg: bytes
""" """
assert self.device assert self.device
self.device.write(self.out_ep, msg, self.timeout) self.device.write(self.out_ep, msg, self.timeout)

View File

@ -152,7 +152,6 @@ class Win32Raw(Escpos):
"""Print any command sent in raw format. """Print any command sent in raw format.
:param msg: arbitrary code to be printed :param msg: arbitrary code to be printed
:type msg: bytes
""" """
if self.printer_name is None: if self.printer_name is None:
raise DeviceNotFoundError("Printer not found") raise DeviceNotFoundError("Printer not found")