Merge pull request #74 from Kijewski/pr-typing

Fix type hints for optional arguments