illinois-ceesd / mirgecom

MIRGE-Com is the workhorse simulation application for the Center for Exascale-Enabled Scramjet Design at the University of Illinois.
Other
12 stars 19 forks source link

Fix up mypy errors after mypy enhancement upstream #1065

Closed MTCam closed 2 months ago

MTCam commented 2 months ago

Some config changes were made in upstream packages which caused mypy testing to be more extensive in downstream pkgs (e.g., mirgecom), resulting in some new errors. Some of these errors were legit documentation foibles. Some appeared to be spurious complaints about using DOFArray's in mathematical expressions.

The errors in mirgecom/profiling.py are simply ignored globally for now using the change in setup.cfg. Since those errors appear to be legit problems in keeping our profiling module up-to-date with the underlying upstream API, and not simply mypy errors. mirgecom/profiling.py should be modernized in a different, dedicated PR.

In short, this change set addresses the new mypy failures that resulted from more extensive testing.

Questions for the review: