
It would at the least be useful to think about how attrs typechecking could add support for converters without having to discard dataclass_transform and implement a custom plugin from scratch. martin On Tue, Jan 18, 2022 at 12:18 PM Eric Traut <eric@traut.com> wrote:
Converters are specific to `attrs`, so I don't think the idea belongs in a standard like this. IMO, the bar is incredibly high for supporting a library-specific feature like this especially when it adds complexity.
If support for converters is added to the stdlib `dataclass` in a future Python release, then it would make sense to extend `dataclass_transform` to include it at that time. It's worth noting that `dataclass` has a common history with `attrs`, and when `dataclass` was standardized as part of PEP 557, converters didn't make the cut. That would seem to imply that converters were not that important.
-Eric -- Eric Traut Contributor to Pyright & Pylance Microsoft _______________________________________________ Typing-sig mailing list -- typing-sig@python.org To unsubscribe send an email to typing-sig-leave@python.org https://mail.python.org/mailman3/lists/typing-sig.python.org/ Member address: mdemello@google.com