Add imports for type hints
minor #1024 Add imports for type hints (JeroenDeDauw)

This PR was merged into the 2.0.x-dev branch.

Discussion
----------

Add imports for type hints

Commits
-------

926bbc0 Add imports for type hints