You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
TypedDict syntax variant with keyword arguments #2492
It's less clear if this is a good idea now that we also have the convenient class-based syntax, and we are going to use a keyword argument to specify that a typed dict may have missing items (see discussion at #2632).
Some people might prefer the functional form. Both forms have their pluses and minuses, see the recent discussion in python/typing#427 and subsequent idea #3520
This doesn't seem feasible now that we have the total=<bool> keyword argument to TypedDict. Also, TypedDict is officially supported in Python and we want to avoid mypy-specific extensions.
Activity
davidfstr commentedon Jan 25, 2017
FYI: I've started work on this.
davidfstr commentedon Jun 11, 2017
Needless to say life has gotten busy on my end and I'm not expecting to resume work on this task in a reasonable timeframe.
I do have a partial patch that I started several months ago, but it may not be so useful since it is based on a very old version of the tree.
JukkaL commentedon Jun 15, 2017
It's less clear if this is a good idea now that we also have the convenient class-based syntax, and we are going to use a keyword argument to specify that a typed dict may have missing items (see discussion at #2632).
ilevkivskyi commentedon Jun 16, 2017
Some people might prefer the functional form. Both forms have their pluses and minuses, see the recent discussion in python/typing#427 and subsequent idea #3520
@gvanrossum What do you think?
gvanrossum commentedon Jun 16, 2017
The functional form works in all Python versions.
JukkaL commentedon Jan 28, 2020
This doesn't seem feasible now that we have the
total=<bool>keyword argument toTypedDict. Also, TypedDict is officially supported in Python and we want to avoid mypy-specific extensions.