1 Oct
2019
1 Oct
'19
9:42 a.m.
Vedran Čačić
Many docs are ... vague about types.
... and I consider that a feature. At least if you do that, make an explicit decision not to introduce TypeErrors for "disagreeing with the documented signature".
For example, I'd be ok with sum being documented as taking an iterable of numbers and returning a number, but it would be a catastrophe if as a consequence of that, sum of a list of lists would stop working.
----------
nosy: +veky
_______________________________________
Python tracker