4 ms·
Python 3.7 added the ability to use type annotations with the @functools.singledispatch decorator which lets you write functions in a multi-dispatch manner.
by jahewson 8y ago
Python 3.7 added the ability to use type annotations with the @functools.singledispatch decorator which lets you write functions in a multi-dispatch manner.
- malmaud 8y agoAs the name suggests, that lets you write functions in a single-dispatch manner. That is different from multiple-dispatch.