From 546391cb9c3d246d536cb5abb269ed4d36e175ce Mon Sep 17 00:00:00 2001 From: belono Date: Thu, 30 May 2024 17:53:21 +0200 Subject: [PATCH] add type hint Alignment --- escpos-printer-db | 1 + src/escpos/escpos.py | 2 ++ 2 files changed, 3 insertions(+) create mode 160000 escpos-printer-db diff --git a/escpos-printer-db b/escpos-printer-db new file mode 160000 index 0000000..375135d --- /dev/null +++ b/escpos-printer-db @@ -0,0 +1 @@ +Subproject commit 375135d552e3fe65cbd1462b8b8d56c401b13ae7 diff --git a/src/escpos/escpos.py b/src/escpos/escpos.py index f9f6e4e..1f6adeb 100644 --- a/src/escpos/escpos.py +++ b/src/escpos/escpos.py @@ -107,6 +107,8 @@ SW_BARCODE_NAMES = { for name in barcode.PROVIDED_BARCODES } +Alignment = Union[Literal["center", "left", "right"], str] + class Escpos(object, metaclass=ABCMeta): """ESC/POS Printer object.