Feb-04-2020, 10:08 PM
I don't use it when doing quick prototyping, but I include it in all code at work, since the people I work with are used to languages like Scala and aren't used to dynamic typing. I agree that it doesn't let you write code you couldn't otherwise, but it really helps for things like code review where you don't have Pycharm or anything like that to help you figure out what types are. I've even caught would-be type errors in code review because people annotated their code correctly but forgot to run mypy to detect the contradiction.