pypa / readme_renderer

Safely render long_description/README files in Warehouse
Apache License 2.0
158 stars 88 forks source link

Add type annotations #166

Closed bhrutledge closed 2 years ago

bhrutledge commented 4 years ago

I've been working on adding type annotations to Twine (https://github.com/pypa/twine/issues/231), and readmer_renderer is one of our imports that's missing type hints/stubs. Is there any interest in adding those, either in the source or to https://github.com/python/typeshed?

See also: https://mypy.readthedocs.io/en/stable/existing_code.html

di commented 4 years ago

Yes! In the source would be fine.

di commented 2 years ago

FYI @bhrutledge, @miketheman has created #225 to address this if you wanted to review.