I wish I understood why this worked, but at least mypy is giving reasonable looking errors with it now.
I'll leave this PR as a starting point for the next person who picks this up - I assume we want to fix all the errors as part of the fix? (Remember to merge/rebase first though)
Fixes #305
I wish I understood why this worked, but at least mypy is giving reasonable looking errors with it now.
I'll leave this PR as a starting point for the next person who picks this up - I assume we want to fix all the errors as part of the fix? (Remember to merge/rebase first though)
According to https://github.com/pre-commit/mirrors-mypy/blob/main/.pre-commit-hooks.yaml the default value is
entry: mypy
. However, running the command linemypy
manually does show some errors, so this is not the whole story!pre-commit
does run commands inside its own environment so it's possible that has an effect.mypy
mypy .
pre-commit run --all-files --verbose
pre-commit run --all-files --verbose
Make that make sense!
(
mypy.ini
is being read in all cases - put in a bad config option and it'll warn you)