[issue41987] singledispatchmethod raises an error when relying on a forward declaration

Ryan Sobol report at bugs.python.org
Thu Nov 12 14:29:50 EST 2020


Ryan Sobol <hello at ryansobol.com> added the comment:

Also, I'm a bit puzzled about something from the previously mentioned Integer class and its use of __future__.annotations. 

Why is it possible to declare an Integer return type for the add() method, but only possible to declare an "Integer" forward reference for the _() method?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41987>
_______________________________________


More information about the Python-bugs-list mailing list