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 @@ -672,7 +672,7 @@ The :mod:`functools` module defines the following functions:
672672 dispatch> ` :term: `generic function `.
673673
674674 To define a generic method, decorate it with the ``@singledispatchmethod ``
675- decorator. When defining a function using ``@singledispatchmethod ``, note
675+ decorator. When defining a method using ``@singledispatchmethod ``, note
676676 that the dispatch happens on the type of the first non-*self * or non-*cls *
677677 argument::
678678
Original file line number Diff line number Diff line change @@ -995,8 +995,7 @@ def wrapper(*args, **kw):
995995class singledispatchmethod :
996996 """Single-dispatch generic method descriptor.
997997
998- Supports wrapping existing descriptors and handles non-descriptor
999- callables as instance methods.
998+ Supports wrapping existing descriptors.
1000999 """
10011000
10021001 def __init__ (self , func ):
You can’t perform that action at this time.
0 commit comments