[issue47166] Dataclass transform should ignore TypeAlias variables

Alex Waygood report at bugs.python.org
Thu Mar 31 06:25:24 EDT 2022


Alex Waygood <Alex.Waygood at Gmail.com> added the comment:

I think implementing this would add complexity to the code in dataclasses.py (though Eric's the expert!).

For your use case, is it essential that the type alias declaration be inside the class scope? Would it be possible for you to simply have the alias declaration in the global scope instead?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue47166>
_______________________________________


More information about the Python-bugs-list mailing list