Message377578
This cannot be helped (unless we were to add an ugly sys._getframe() call to get_type_hints(), which I don't want to do). The solution is to pass `localns=locals()`, e.g.
get_type_hints(foo, None, locals())
or
get_type_hints(foo, localns=locals()) |
|
Date |
User |
Action |
Args |
2020-09-27 19:59:08 | gvanrossum | set | recipients:
+ gvanrossum, cjw296, levkivskyi |
2020-09-27 19:59:08 | gvanrossum | set | messageid: <1601236748.27.0.308802866894.issue41872@roundup.psfhosted.org> |
2020-09-27 19:59:08 | gvanrossum | link | issue41872 messages |
2020-09-27 19:59:08 | gvanrossum | create | |
|