remove type comment where type is annotated
This commit is contained in:
parent
d68f187d64
commit
5c5acff16c
@ -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:
|
||||||
|
@ -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
|
||||||
|
@ -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)
|
||||||
|
@ -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)
|
||||||
|
@ -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)
|
||||||
|
@ -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")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user