Fix type hints for some fields
minor #508 Fix type hints for some fields (JeroenDeDauw)

This PR was merged into the 5.2-dev branch.

Discussion
----------

Fix type hints for some fields

Commits
-------

d500d1d Fix type hints for some fields