python-hyper/hyperlink

Ship PEP 561 type stubs

wsanchez opened this issue · 5 comments

Type hints can be very useful to clients.

First we need to add type hints to the code. #80 starts that process.

@glyph This is your ticket, ported from Klein. :-)

I'll take another round of type hints, now that #80 is done.

Before we publish the type hints, I'd like to complete (or mostly complete) the remaining hints, and then try using them in some of my projects, and in Klein, to see if any interesting weirdness comes up.

The mypy documentation has a section on Making PEP 561 compatible packages. Looks like we just need a py.typed file?

glyph commented

Great! I didn't realize it was that simple.