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 gvanrossum
Recipients BTaskaya, ethan smith, glyph, gvanrossum, mental, ryansobol
Date 2020-11-12.21:39:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1605217197.96.0.278899160201.issue41987@roundup.psfhosted.org>
In-reply-to
Content
> Does anyone know why the treatment of unresolved references was changed in 3.9?

Probably to prepare for 3.10, where `from _future__ import annotations` is the default.

> 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?

I don't know -- you might want to look through the source code of singledispatch. Maybe the flow through the initial decorator is different than the flow through register().
History
Date User Action Args
2020-11-12 21:39:58gvanrossumsetrecipients: + gvanrossum, glyph, ethan smith, BTaskaya, mental, ryansobol
2020-11-12 21:39:57gvanrossumsetmessageid: <1605217197.96.0.278899160201.issue41987@roundup.psfhosted.org>
2020-11-12 21:39:57gvanrossumlinkissue41987 messages
2020-11-12 21:39:57gvanrossumcreate