Knio / dominate

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.
GNU Lesser General Public License v3.0
1.69k stars 109 forks source link

Feature Request: Type Hints #191

Open AndrewMHenry opened 7 months ago

AndrewMHenry commented 7 months ago

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 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.