fix formatting

This commit is contained in:
Patrick Kanzler 2023-08-17 01:12:10 +02:00
parent 4f17ea63e1
commit d48008a984
2 changed files with 4 additions and 2 deletions

View File

@ -13,7 +13,7 @@ import socket
from ..escpos import Escpos
def is_usable()->bool:
def is_usable() -> bool:
"""Indicate whether this component can be used due to dependencies."""
return True
@ -40,6 +40,7 @@ class Network(Escpos):
:parts: 1
"""
@staticmethod
def is_usable() -> bool:
"""Indicate whether this printer class is usable.

View File

@ -24,7 +24,7 @@ except ImportError:
pass
def is_usable()->bool:
def is_usable() -> bool:
"""Indicate whether this component can be used due to dependencies."""
usable = False
if _DEP_PYSERIAL:
@ -60,6 +60,7 @@ class Serial(Escpos):
:parts: 1
"""
@staticmethod
def is_usable() -> bool:
"""Indicate whether this printer class is usable.