<gh_stars>10-100
"""Custom types for MyPy"""

from typing import Dict, List, Tuple, TypedDict

from fitz import Rect


class RedactionType(TypedDict):
    """A type for a redaction"""

    bbox: Tuple[float, ...]
    text: str


# The type used for the top-level dictionary of all redactions for a document
PdfRedactionsDict = Dict[int, List[RedactionType]]


class CharDictType(TypedDict):
    """A type for a character dictionary"""

    rect: Rect
    c: str
