In this PR I have upgraded pre-commit to use mypy 1.9.0!
As part of this process, mypy now prohibits implicit Optional arguments (as described by PEP 484 here). I have updated the code to add Optional type hints where required. Shoutout to this repo for having good docs on this issue! (Although I just did the updates manually, rather than use their package, since there were only a few places where this was an issue)
Description
In this PR I have upgraded pre-commit to use mypy 1.9.0!
As part of this process, mypy now prohibits implicit Optional arguments (as described by PEP 484 here). I have updated the code to add
Optional
type hints where required. Shoutout to this repo for having good docs on this issue! (Although I just did the updates manually, rather than use their package, since there were only a few places where this was an issue)Issue Ticket Number
Closes #222
Documentation
na