On 25 December 2017 at 12:32, Ethan Smith <et...@ethanhs.me> wrote: > So at the moment, I don't think it is possible to implement singledispatch > on classmethod or staticmethod decorated functions.
I've posted this to the PR, but adding it here as well: I think this is a situation very similar to the case with functools.partialmethod, where you're going to need to write a separate functools.singledispatchmethod class that's aware of the descriptor protocol, rather than trying to add the functionality directly to functools.singledispatch. Cheers, Nick. -- Nick Coghlan | ncogh...@gmail.com | Brisbane, Australia _______________________________________________ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com