13 Mar
2022
13 Mar
'22
8:50 p.m.
El dom, 13 mar 2022 a las 13:35, Eric Traut (
I'm open to other suggestions for how to specify the type of the extra entries, but I can't think of any better suggestions. Specifying the type as a class declaration argument isn't a good choice.
Why not? I don't see a problem with something like this: class TD(TypedDict, extra=str): foo: int bar: float Is your concern about TypeVar scope if we also added support for Generic TypedDicts?
-Eric _______________________________________________ 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: jelle.zijlstra@gmail.com