Skip to content

handler

Handler

Source code in mkreports/md/handler.py
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
@dataclass
class Handler:
    """
    A handler for output.

    Args:
        name (str): Name of the handler.
        class_type (Union[type, Tuple[type, ...]]): Classes covered by the handler.
        func (Callable): the function to use to handle the output.
    """

    name: str
    class_type: Union[type, Tuple[type, ...]]
    func: Callable