Add some typehints
Merge pull request #51 from amalloy/master

Typehints