[3.14] gh-140873: Fix the singledispatchmethod documentation (GH-141523)

It does not support non-descriptor callables yet.
This commit is contained in:
Serhiy Storchaka 2025-11-18 13:16:39 +02:00 committed by GitHub
parent 3388413fc5
commit d89eb2f984
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 3 deletions

View file

@ -995,8 +995,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):