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

@@ -0,0 +1,23 @@
# -*- coding: utf-8 -*-
"""Custom types."""
from typing import Dict
from typing_extensions import TypedDict
class ConstTxtStyleClass(TypedDict):
"""Describe type of :py:data:`escpos.constants.TXT_STYLES`."""
bold: Dict[bool, bytes]
underline: Dict[int, bytes]
size: Dict[str, bytes]
font: Dict[str, bytes]
align: Dict[str, bytes]
invert: Dict[bool, bytes]
color: Dict[str, bytes]
flip: Dict[bool, bytes]
density: Dict[int, bytes]
smooth: Dict[bool, bytes]
height: Dict[int, int]
width: Dict[int, int]