Skip to content

Update TypedDict to match updated PEP-728 #511

Closed

Description

@mharding-hpe

typing_extensions 4.10 added support for PEP-728. However, the PEP was updated last month to change how it is being implemented. Instead of the __extra_items__ class attribute, it now is using the extra_items class parameter. It would be good to make the corresponding change in typing_extensions, to match the updated PEP-728.

Activity

  1. JelleZijlstra commented on Nov 24, 2024

    @JelleZijlstra
    Member

    I started working on this but I'm not sure I'm happy with the runtime behavior proposed in the current version of the PEP, and there was some more talk on Discuss about possible alternative spellings. I'll look at it again when I find some time.

  2. mharding-hpe commented on Nov 24, 2024

    @mharding-hpe
    Author

    Thank you -- much appreciated. I am eagerly awaiting this new feature, in whatever form it finally arrives. :)

  3. chuckwondo commented on Jan 7, 2025

    @chuckwondo

    I just stumbled upon PEP 728 and I'd like to see the updated proposal implemented as well. Any further thoughts here?

    This is also holding up mypy support: python/mypy#18176

  4. JelleZijlstra commented on Mar 20, 2025

    @JelleZijlstra
    Member

    This is done, and a pre-release with support just went out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions