Message373752
> I was thinking that similarly to __required_keys__ and __optional_keys__, the TypedDict could preserve its original bases in a new dunder attribute, and get_type_hints could work off of that instead of MRO when it is dealing with a TypedDict. I would be willing to contribute the PRs to implement this if the design is acceptable
TBH this is not very elegant, but I think you can go ahead with this (at least as a quick fix) since I don't see a better solution yet. |
|
Date |
User |
Action |
Args |
2020-07-16 10:12:25 | levkivskyi | set | recipients:
+ levkivskyi, gvanrossum, keithblaha |
2020-07-16 10:12:25 | levkivskyi | set | messageid: <1594894345.56.0.396461526659.issue41249@roundup.psfhosted.org> |
2020-07-16 10:12:25 | levkivskyi | link | issue41249 messages |
2020-07-16 10:12:25 | levkivskyi | create | |
|