I was reading an article this morning that linked to this tool for TypeScript:
This tool will check type of all identifiers,
the type coverage rate=
the count of identifiers whose type is not any/
the total count of identifiers, the higher, the better.
And I wondered if there is any similar tool for Python projects?
I think we can tell e.g. mypy to be strict about untyped identifiers and raise errors for them. We could then count the errors.
But what if we wanted to run it more leniently but still collect a soft metric about the state of our code?