[issue44863] Allow TypedDict to inherit from Generics

2021-09-06 Thread Samodya Abey
Samodya Abey added the comment: My initial intention to create this ticket was to explore the idea that if we could side step from creating a PEP or updating PEP-589. IMO only contribution from a new PEP will be: 1. relaxing this line from PEP-589 and be explicit to include Generic: &q

[issue44863] Allow TypedDict to inherit from Generics

2021-08-07 Thread Samodya Abey
New submission from Samodya Abey : TypedDict PEP-589 says: A TypedDict cannot inherit from both a TypedDict type and a non-TypedDict base class. So the current implementation has: `if type(base) is not _TypedDictMeta: raise TypeError(...)` This restricts the user from defining generic