Dominate is a Python library for creating and manipulating HTML documents using an elegant DOM API. It allows you to write HTML pages in pure Python very concisely, which eliminate the need to learn another template language, and to take advantage of the more powerful features of Python.
Would it be feasible to add type hints for all or part of the code? For example, if I call the .render() method on a document, mypy infers the return type as Any and complains when I try to use it as a string.
Also, thanks for all your work on this library! Using it makes code so much cleaner and more readable than ad-hoc implementations.
Hello,
Would it be feasible to add type hints for all or part of the code? For example, if I call the
.render()
method on adocument
, mypy infers the return type asAny
and complains when I try to use it as a string.Also, thanks for all your work on this library! Using it makes code so much cleaner and more readable than ad-hoc implementations.