Writing tests is harder work than writing the equvalent number of type hints though

Type hints and/or stronger typing in other languages are not good substitutes for testing. I sometimes worry that teams with strong preferences for strong typing have a false sense of security.

People write tests in statically typed languages too, it's just that there's a whole class of bugs that you don't have to test for.

Hints are not sufficient, you’ll need tests anyway. They somewhat overlap.