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 JelleZijlstra
Recipients JelleZijlstra, eric.smith, tkomiya, uriyyo
Date 2022-03-12.03:36:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1647056185.5.0.964081436402.issue44799@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2022-03-12 03:36:25JelleZijlstrasetrecipients: + JelleZijlstra, eric.smith, uriyyo, tkomiya
2022-03-12 03:36:25JelleZijlstrasetmessageid: <1647056185.5.0.964081436402.issue44799@roundup.psfhosted.org>
2022-03-12 03:36:25JelleZijlstralinkissue44799 messages
2022-03-12 03:36:25JelleZijlstracreate