On 22/01/2015 7:37 PM, Nicholas Cole wrote:
Still, it would have been nicer to be able to write something like
this (where the Unions are implicit):

Coincidentally, you also demonstrate what makes this a lesser idea :)

def handle_employees(employees, rasie):
                                  ^^^^^
     # raise:  float, Sequence[float]
         ^^^^^

There is a distinct advantage in not repeating yourself.
--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to