dispatch>` :term:`generic function`.
To define a generic method, decorate it with the ``@singledispatchmethod``
- decorator. When defining a function using ``@singledispatchmethod``, note
+ decorator. When defining a method using ``@singledispatchmethod``, note
that the dispatch happens on the type of the first non-*self* or non-*cls*
argument::
class singledispatchmethod:
"""Single-dispatch generic method descriptor.
- Supports wrapping existing descriptors and handles non-descriptor
- callables as instance methods.
+ Supports wrapping existing descriptors.
"""
def __init__(self, func):