See https://mypy.readthedocs.io/en/stable/inline_config.html This makes it possible to enable mypy at a more granular level. In tools/, there are now 184 files with some kind of inline mypy config, but also 107 that don't, notably the files annotated here: #33367
647e21f