Talk:Practical numbers: Difference between revisions
→Oh dear ... what is this addiction to angry vandalism ?
Line 41:
'''sumOfAnySubset(xs: List[int]) -> Callable[[Any], Any]'''
I rest my case. '''"Callable"''' is not needed by the human reader, who is simply aiming for mental clarity, and '''"Any"''' provides less information than Int. It is, in fact, misleading. A [String] or String for example, in either of those positions, would cause the code to fail.
The '''comment''' is more legible and helpful for the human, the '''type hint''' is more helpful (we hope) to the compiler.
|