Message380852
> 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(). |
|
Date |
User |
Action |
Args |
2020-11-12 21:39:58 | gvanrossum | set | recipients:
+ gvanrossum, glyph, ethan smith, BTaskaya, mental, ryansobol |
2020-11-12 21:39:57 | gvanrossum | set | messageid: <1605217197.96.0.278899160201.issue41987@roundup.psfhosted.org> |
2020-11-12 21:39:57 | gvanrossum | link | issue41987 messages |
2020-11-12 21:39:57 | gvanrossum | create | |
|