Skip to content
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 tracking issue #11753

Closed
97littleleaf11 opened this issue Dec 15, 2021 · 5 comments
Closed

TypedDict tracking issue #11753

97littleleaf11 opened this issue Dec 15, 2021 · 5 comments
Labels
meta Issues tracking a broad area of work topic-typed-dict

Comments

@97littleleaf11
Copy link
Collaborator

97littleleaf11 commented Dec 15, 2021

** unpacking

Related discussion and proposal

There has been a lot of discussion about better ** typing in typing-sig mailing list.

Unpack TypedDict into dict

Unpack TypedDict into TypedDict

update()

update() should accept whose fields is the subset of the caller's fields.

update(x=1,...)

Generics

Useful materials

@97littleleaf11 97littleleaf11 added topic-typed-dict meta Issues tracking a broad area of work labels Dec 15, 2021
@97littleleaf11
Copy link
Collaborator Author

Rejected feature requests

Definition

We wouldn't going to support these syntax and we encourage users to use the class-based syntax since it has been officially supported by Python.

Instantiation

According to PEP589:

It can be used as a callable object with keyword arguments corresponding to the TypedDict items. Non-keyword arguments are not allowed

@davidfstr
Copy link
Contributor

davidfstr commented May 9, 2022

@hauntsaninja thanks for taking the time to organize some of the current remaining outstanding features for TypedDict!

Is this list intended to be comprehensive? Or perhaps it is a subset of features that you personally are interested in driving forward? Or some other subset?

Related: It appears that you don’t have placeholders for all 4 proposals from the tech talk you have referenced (“The Future of TypedDict”). Is the omission intentional?

@hauntsaninja
Copy link
Collaborator

I'm assuming you meant to tag 97littleleaf11? :-)

@97littleleaf11
Copy link
Collaborator Author

@davidfstr It's not a complete list. It would be great if you put your ideas here!

@hauntsaninja
Copy link
Collaborator

Closing, since this is basically all complete, minus #6019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
meta Issues tracking a broad area of work topic-typed-dict
Projects
None yet
Development

No branches or pull requests

3 participants