This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author dmkulazhenko
Recipients dmkulazhenko
Date 2021-06-16.07:50:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1623829842.06.0.925257571912.issue39679@roundup.psfhosted.org>
In-reply-to
Content
Based on what I've read, workaround:


from functools import singledispatchmethod


def _register(self, cls, method=None):
    if hasattr(cls, "__func__"):
        setattr(cls, "__annotations__", cls.__func__.__annotations__)
    return self.dispatcher.register(cls, func=method)


singledispatchmethod.register = _register
History
Date User Action Args
2021-06-16 07:50:42dmkulazhenkosetrecipients: + dmkulazhenko
2021-06-16 07:50:42dmkulazhenkosetmessageid: <1623829842.06.0.925257571912.issue39679@roundup.psfhosted.org>
2021-06-16 07:50:42dmkulazhenkolinkissue39679 messages
2021-06-16 07:50:41dmkulazhenkocreate