1
0
mirror of https://github.com/python-escpos/python-escpos synced 2025-09-13 09:09:58 +00:00

Maintenance: fix read the docs and some annotations (#557)

This commit is contained in:
Patrick Kanzler
2023-09-03 09:57:56 +02:00
committed by GitHub
parent c7c01cdbff
commit 44444f3c51
4 changed files with 102 additions and 76 deletions

View File

@@ -917,10 +917,10 @@ class Escpos(object):
"""
if custom_size:
if (
1 <= width <= 8
and 1 <= height <= 8
and isinstance(width, int)
isinstance(width, int)
and isinstance(height, int)
and 1 <= width <= 8
and 1 <= height <= 8
):
size_byte = TXT_STYLE["width"][width] + TXT_STYLE["height"][height]
self._raw(TXT_SIZE + six.int2byte(size_byte))