[issue45524] Cross-module dataclass inheritance breaks get_type_hints

2021-10-19 Thread Aidan Clark
New submission from Aidan Clark : [I believe this is fundamentally a dataclass version of https://bugs.python.org/issue41249] When using `from __future__ import annotations`, calling get_type_hints on the constructor of a dataclass B which inherits from a dataclass A defined in another

[issue45524] Cross-module dataclass inheritance breaks get_type_hints

2021-10-19 Thread Aidan Clark
Aidan Clark added the comment: Ah yes, I completely apologize about that typo, the __init__ is definitely needed (serves me right for trying to clean up a repo before posting it). One other comment to make, perhaps obvious; manually passing a namespace to get_type_hints' `globalns`