Message384381
If a class X has nested class Y and class X has annotation Y AFTER the definition of Y, get_type_hints(X) throws NameError if import from future annotations is present.
This is because get_type_hints looks only at mro of the class. Its namespace must be included too as locals. |
|
Date |
User |
Action |
Args |
2021-01-05 11:18:32 | Prometheus3375 | set | recipients:
+ Prometheus3375 |
2021-01-05 11:18:32 | Prometheus3375 | set | messageid: <1609845512.57.0.0433631135188.issue42829@roundup.psfhosted.org> |
2021-01-05 11:18:32 | Prometheus3375 | link | issue42829 messages |
2021-01-05 11:18:32 | Prometheus3375 | create | |
|