mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
[3.13] gh-140873: Fix the singledispatchmethod documentation (GH-141523) (GH-141710)
It does not support non-descriptor callables yet.
(cherry picked from commit d89eb2f984)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
This commit is contained in:
parent
b41963a4aa
commit
8f7188847f
2 changed files with 2 additions and 3 deletions
|
|
@ -947,8 +947,7 @@ def wrapper(*args, **kw):
|
|||
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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue