Message414969
This is now fixed in main thanks to bpo-46644:
```
>>> get_type_hints(Foo)
{'attr': dataclasses.InitVar[int]}
```
We're not backporting that change to the bugfix branches. If we want to fix this issue in 3.10 and 3.9, we'll have to add a `__call__` method to `InitVar`. My inclination is that that's not worth it. |
|
Date |
User |
Action |
Args |
2022-03-12 03:36:25 | JelleZijlstra | set | recipients:
+ JelleZijlstra, eric.smith, uriyyo, tkomiya |
2022-03-12 03:36:25 | JelleZijlstra | set | messageid: <1647056185.5.0.964081436402.issue44799@roundup.psfhosted.org> |
2022-03-12 03:36:25 | JelleZijlstra | link | issue44799 messages |
2022-03-12 03:36:25 | JelleZijlstra | create | |
|