From d48008a98419d5037bd3787a546111c2b0278880 Mon Sep 17 00:00:00 2001 From: Patrick Kanzler Date: Thu, 17 Aug 2023 01:12:10 +0200 Subject: [PATCH] fix formatting --- src/escpos/printer/network.py | 3 ++- src/escpos/printer/serial.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/escpos/printer/network.py b/src/escpos/printer/network.py index b1673c4..9d1f9d8 100644 --- a/src/escpos/printer/network.py +++ b/src/escpos/printer/network.py @@ -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. diff --git a/src/escpos/printer/serial.py b/src/escpos/printer/serial.py index 48fbe6d..0b80e12 100644 --- a/src/escpos/printer/serial.py +++ b/src/escpos/printer/serial.py @@ -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.