File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -620,7 +620,7 @@ The :mod:`functools` module defines the following functions:
620620 dispatch> ` :term: `generic function `.
621621
622622 To define a generic method, decorate it with the ``@singledispatchmethod ``
623- decorator. When defining a function using ``@singledispatchmethod ``, note
623+ decorator. When defining a method using ``@singledispatchmethod ``, note
624624 that the dispatch happens on the type of the first non-*self * or non-*cls *
625625 argument::
626626
Original file line number Diff line number Diff line change @@ -947,8 +947,7 @@ def wrapper(*args, **kw):
947947class singledispatchmethod :
948948 """Single-dispatch generic method descriptor.
949949
950- Supports wrapping existing descriptors and handles non-descriptor
951- callables as instance methods.
950+ Supports wrapping existing descriptors.
952951 """
953952
954953 def __init__ (self , func ):
You can’t perform that action at this time.
0 commit comments