Add type stubs from typeshed
~~(WIP, DO NOT MERGE - still waiting for internal review)~~
Ready for review.
Closes #49
@Tinche This is almost ready for a final review.
There is just one outstanding error that is arising from the type-checker that I am not certain about and would appreciate your guidance on.
In text.py, readable appears to be defined as both an async and a sync method. The sync method overwrites the async method, and so in practice it is a sync method. (This is my understanding anyway.)
mypy gets a little confused by redefining an async function by a sync function in this way. I can explicitly ignore it, but I first wanted to check with you whether this is deliberate behaviour?
Oops, I just saw #28! In which case, this PR is ready for review now.