-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypedDict syntax variant with keyword arguments #2492
Comments
FYI: I've started work on this. |
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. |
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 @gvanrossum What do you think? |
The functional form works in all Python versions. |
This doesn't seem feasible now that we have the |
Support defining typed dicts like this:
The text was updated successfully, but these errors were encountered: