deedy5 / html2text_rs

Python library for converting HTML to markup or plain text
MIT License
2 stars 0 forks source link

Please consider adding a stub file #4

Open Ravencentric opened 5 days ago

Ravencentric commented 5 days ago

IDEs and type checkers cannot determine what this package offers due to it not being written in pure python. This can be solved by providing a stub file.

See: https://typing.readthedocs.io/en/latest/guides/libraries.html#how-to-provide-type-annotations Example: https://github.com/messense/nh3/blob/main/nh3.pyi (python bindings for another rust library)

deedy5 commented 5 days ago

Good idea! Thanks for the links, will do it when I have time.