Guido van Rossum <gu...@python.org> added the comment:

This behavior (only relevant with `from __future__ import annotations`) has 
been around since @singledispatchmethod was introduced in 3.8, so I agree we 
should treat it as a feature request.

In the meantime, maybe a workaround is to move the register call out of the 
class? It looks a little bit ugly but probably works.

(Disclaimer: I'm not familiar with singledispatchmethod.)

----------
nosy: +ethan smith

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue41987>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to