Changed type hint
Merge pull request #6668 from hannesvdvreken/fix/type-hint

[5.0] Changed type hint to a contract