2 ms·
I think you misinterpreted parent comment. My reading was that they would have preferred type-hints to be defined as part of docstring style comments instead of
by zokier 3y ago
I think you misinterpreted parent comment. My reading was that they would have preferred type-hints to be defined as part of docstring style comments instead of having the type hints inline with the code. From tooling point of view it doesn't make any difference, both forms should be functionally equivalent.
- nerdponx 3y agoSphinx does process type hints in docstring comments, but I'm grateful that Mypy didn't take the approach of requiring a docstring.