Page MenuHomeSoftware Heritage

Turn on the `--check-untyped-defs` mypy flag on all python modules
Open, NormalPublic

Description

One caveat of mypy is that, by default, it only type checks functions that have type annotations.

Most of our tests do not have type annotations, and therefore their contents are not typechecked. Adding -> None to all tests feels like avoidable busywork.

We should consider turning on --check-untyped-defs on modules.

Related Objects

Event Timeline

olasd triaged this task as Normal priority.Wed, Mar 11, 2:58 PM
olasd created this task.