[Python-ideas] Proposal: Use mypy syntax for function annotations

Ethan Furman ethan at stoneleaf.us
Sat Aug 16 07:59:05 CEST 2014


On 08/15/2014 10:04 PM, Steven D'Aprano wrote:
>
> Using docstring annotations splits the information about parameters into
> two places. Those two places might be close, but there are still two
> sources of ultimate truth instead of one. You have the name of the
> parameter in the parameter list, and the type of the parameter inside
> the docstring separated by some arbitrary number of lines of code.

You say that like it's a bad thing.  Not having everything crammed into one spot can be good.  Too dense is just as bad 
as too sparse.

--
~Ethan~


More information about the Python-ideas mailing list