
Nov. 27, 2021
1:41 a.m.
Steven D'Aprano wrote:
On Sat, Nov 20, 2021 at 11:46:56PM -0800, Christopher Barker wrote:
Maybe PEP 563 could include a decorator in the typing module to destringify all the annotations in a class or function?
If it were in an annotations module, that would probably be sufficient. If it is in typing, then it is a very heavyweight dependency -- heavy enough that even the people actually using that module for development (and not for production runs) are worried about the costs. If the costs of the typing module are that high, it is not acceptable to impose them on people not otherwise using the module. -jJ