OSeMOSYS / otoole

OSeMOSYS Tools for Energy
https://otoole.readthedocs.io
MIT License
23 stars 17 forks source link

Upgrade to mypy 1.9.0 #223

Closed trevorb1 closed 5 months ago

trevorb1 commented 5 months ago

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