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

Glyph Lefkowitz report at bugs.python.org
Fri Oct 9 21:52:04 EDT 2020


Glyph Lefkowitz <glyph at twistedmatrix.com> added the comment:

The behavior is the same with a traditional quoted forward declaration, so it’s not specific to the __future__ import; I just phrased the example that way to show how it’s going to look in the future and to illustrate how it might crop up in a way which is maximally confusing to users less familiar with the internals of type annotations.

----------

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


More information about the Python-bugs-list mailing list