Message390877
To be honest, I'm not 100% sure. But I observe that typing.get_type_hints() is about fifty lines of code, and very few of them are the opinionated lines I want to avoid.
Some things typing.get_type_hints() seems to do for you:
* Work around the "classes inherit annotations" design bug.
* Unwrap wrapped functions.
* "Return empty annotations for something that _could_ have them." |
|
Date |
User |
Action |
Args |
2021-04-12 17:57:50 | larry | set | recipients:
+ larry, gvanrossum, eric.smith |
2021-04-12 17:57:50 | larry | set | messageid: <1618250270.47.0.0448890018374.issue43817@roundup.psfhosted.org> |
2021-04-12 17:57:50 | larry | link | issue43817 messages |
2021-04-12 17:57:50 | larry | create | |
|