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:
23
src/escpos/types/__init__.py
Normal file
23
src/escpos/types/__init__.py
Normal 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]
|
Reference in New Issue
Block a user