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

Implement PEP 705 (TypedDict: Read-only items) #116127

Closed
3 tasks
JelleZijlstra opened this issue Feb 29, 2024 · 5 comments
Closed
3 tasks

Implement PEP 705 (TypedDict: Read-only items) #116127

JelleZijlstra opened this issue Feb 29, 2024 · 5 comments
Assignees
Labels
3.13 new features, bugs and security fixes topic-typing type-feature A feature request or enhancement

Comments

@JelleZijlstra
Copy link
Member

JelleZijlstra commented Feb 29, 2024

Feature or enhancement

PEP-705 was just accepted. For the runtime implementation, we'll need:

  • Add the new ReadOnly special form
  • Adjust the implementation of TypedDict
  • Update docs

The typing-extensions implementation should provide a good baseline.

cc @alicederyn

Linked PRs

@JelleZijlstra JelleZijlstra added type-feature A feature request or enhancement topic-typing 3.13 new features, bugs and security fixes labels Feb 29, 2024
@sobolevn
Copy link
Member

sobolevn commented Mar 1, 2024

Is someone working on this already? :)
Or can I take this over?

@JelleZijlstra
Copy link
Member Author

I am not working on it, feel free to take it. Thanks!

@sobolevn sobolevn self-assigned this Mar 1, 2024
@sobolevn
Copy link
Member

sobolevn commented Mar 1, 2024

Basically, the implementation exists here: python/typing_extensions@0b0166d

I just need to port it.

sobolevn added a commit to sobolevn/cpython that referenced this issue Mar 5, 2024
JelleZijlstra added a commit that referenced this issue Mar 12, 2024
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
adorilson pushed a commit to adorilson/cpython that referenced this issue Mar 25, 2024
…hon#116350)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
@JelleZijlstra
Copy link
Member Author

@sobolevn any progress here? The beta freeze is approaching.

@JelleZijlstra
Copy link
Member Author

Wait, it was done. Thank you!

diegorusso pushed a commit to diegorusso/cpython that referenced this issue Apr 17, 2024
…hon#116350)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.13 new features, bugs and security fixes topic-typing type-feature A feature request or enhancement
Projects
None yet
Development

No branches or pull requests

2 participants