aiidateam / aiida-core

The official repository for the AiiDA code
https://aiida-core.readthedocs.io
Other
412 stars 184 forks source link

Make mypy pass with Python 3.12 #6408

Closed danielhollas closed 1 month ago

danielhollas commented 1 month ago

Mypy was failing for me locally on Fedora 39 with Python 3.12 due to missing distutils module. I modified the deprecated get_strict_version function so that we raise explicitly for python 3.12 and above. This also fixed the mypy error.

Other drive-by changes: