Escalated mypy to use --strict option.

Use --strict in mypy to perform maximum type checking.
Fixed the remaining errors.
This commit is contained in:
Don Cross
2023-02-21 15:34:52 -05:00
parent 8963ef9b1a
commit b686b6185c
4 changed files with 28 additions and 13 deletions

View File

@@ -14,7 +14,7 @@ python3 -m pylint --init-hook="import sys; sys.setrecursionlimit(2000)" ../sour
echo "$0: running mypy"
cd ../source/python/astronomy || Fail "error changing to Python source directory"
mypy --disallow-untyped-defs --module astronomy || Fail "error checking types using mypy"
mypy --strict --module astronomy || Fail "error checking types using mypy"
cd ../../../generate || Fail "error changing back to generate directory"
echo ""