fgpyo icon indicating copy to clipboard operation
fgpyo copied to clipboard

chore: Modernize mypy config

Open msto opened this issue 2 months ago • 1 comments

Summary

This PR adds the mypy configuration used by our template and addresses resulting type errors.

Most of the changes are a consequence of setting strict_optional = true, a setting recommended by the mypy developers.

msto avatar Sep 27 '25 21:09 msto

Mypy checks are failing on 3.9. I wonder if this is related to our decision to not enforce a python version in the mypy config.

TBH I'd prefer to drop support for 3.9 (https://github.com/fulcrumgenomics/fgpyo/issues/247) since it EOLs next month anyways, rather than spend time fixing.

msto avatar Sep 27 '25 22:09 msto