fix formatting
This commit is contained in:
parent
4f17ea63e1
commit
d48008a984
@ -13,7 +13,7 @@ import socket
|
|||||||
from ..escpos import Escpos
|
from ..escpos import Escpos
|
||||||
|
|
||||||
|
|
||||||
def is_usable()->bool:
|
def is_usable() -> bool:
|
||||||
"""Indicate whether this component can be used due to dependencies."""
|
"""Indicate whether this component can be used due to dependencies."""
|
||||||
return True
|
return True
|
||||||
|
|
||||||
@ -40,6 +40,7 @@ class Network(Escpos):
|
|||||||
:parts: 1
|
:parts: 1
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def is_usable() -> bool:
|
def is_usable() -> bool:
|
||||||
"""Indicate whether this printer class is usable.
|
"""Indicate whether this printer class is usable.
|
||||||
|
@ -24,7 +24,7 @@ except ImportError:
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
def is_usable()->bool:
|
def is_usable() -> bool:
|
||||||
"""Indicate whether this component can be used due to dependencies."""
|
"""Indicate whether this component can be used due to dependencies."""
|
||||||
usable = False
|
usable = False
|
||||||
if _DEP_PYSERIAL:
|
if _DEP_PYSERIAL:
|
||||||
@ -60,6 +60,7 @@ class Serial(Escpos):
|
|||||||
:parts: 1
|
:parts: 1
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def is_usable() -> bool:
|
def is_usable() -> bool:
|
||||||
"""Indicate whether this printer class is usable.
|
"""Indicate whether this printer class is usable.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user