diff --git a/pyproject.toml b/pyproject.toml index 512d48546e..dda109cff5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -141,11 +141,14 @@ ignore_missing_imports = true ignore_errors = true ignore_missing_imports = true - # jinja has syntax in it that requires python3 and causes a parse error - # skip importing it + # pytest (which we depend on) optionally imports numpy, which requires Python 3.8 in + # recent versions. mypy still imports its .pyi file, which has positional-only + # arguments, which don't work in 3.7, which causes mypy to bail out early if you have + # numpy installed. [[tool.mypy.overrides]] - module = 'jinja2' + module = 'numpy' follow_imports = 'skip' + follow_imports_for_stubs = true [tool.pyright] useLibraryCodeForTypes = true