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

add type annotations for escpos image handler (#599)

This commit is contained in:
Patrick Kanzler
2023-12-03 23:36:35 +01:00
committed by GitHub
parent 8274833255
commit 9a1699ab94
3 changed files with 14 additions and 12 deletions

View File

@@ -174,11 +174,11 @@ class Escpos(object):
def image(
self,
img_source,
high_density_vertical=True,
high_density_horizontal=True,
impl="bitImageRaster",
fragment_height=960,
center=False,
high_density_vertical: bool = True,
high_density_horizontal: bool = True,
impl: str = "bitImageRaster",
fragment_height: int = 960,
center: bool = False,
) -> None:
"""Print an image.