]>
git.scottworley.com Git - paperdoorknob/blob - spec.py
34e2e6b3593bf34a7ec773c20ac6a08de67d8797
1 # paperdoorknob: Print glowfic
3 # This program is free software: you can redistribute it and/or modify it
4 # under the terms of the GNU General Public License as published by the
5 # Free Software Foundation, version 3.
8 from dataclasses
import dataclass
10 from typing
import Callable
, IO
12 from bs4
.element
import Tag
14 from fetch
import Fetcher
15 from glowfic
import Layout
16 from images
import ImageStore
19 # pylint: disable=too-many-instance-attributes
20 @dataclass(frozen
=True)
25 htmlfilter
: Callable
[[bytes], bytes]
26 domfilter
: Callable
[[Tag
], None]