Fix type in type hint

This parameter can also be a boolean or an array
Merge pull request #1241 from JeroenDeDauw/typehint

Fix type in type hint