Fix type hints in stubs
Merge pull request #638 from rzajac/stubsTypeHintFix

Stubs type hint fix