GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Remove deprecated implicit empty sequence argument for `typing.TypedDict` · Issue #133823 · python/cpython

Remove deprecated implicit empty sequence argument for typing.TypedDict #133823

New issue
Copy link
New issue
Copy link
Closed
Closed
Remove deprecated implicit empty sequence argument for typing.TypedDict#133823
Copy link
Assignees
picnixz
Labels
stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytopic-typingtype-featureA feature request or enhancementA feature request or enhancement

Description

@picnixz
picnixz
opened on May 10, 2025
Issue body actions

Feature or enhancement

Proposal:

It was deprecated in 3.13 but there was no removal notice in the docs: see #105570 and #105780. I don't know whether it's better to delay it a bit more just to have a deprecation notice or to first add a deprecation notice for 3.13 and 3.14, but still remove it in 3.15.

cc @AlexWaygood

Has this already been discussed elsewhere?

This is a minor feature, which does not need previous discussion elsewhere

Links to previous discussion of this feature:

No response

Linked PRs

  • gh-133823: require explicit empty sequence for 0-field TypedDict objects #133863
  • gh-133823: update "Pending Removal in 3.15" notes about TypedDict #133864
  • [3.14] gh-133823: update "Pending Removal in 3.15" notes about TypedDict (GH-133864) #133870
  • [3.13] gh-133823: update "Pending Removal in 3.15" notes about TypedDict (GH-133864) #133871

Activity

  1. picnixz
    added
    type-featureA feature request or enhancementA feature request or enhancement
    stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directory
    topic-typing
    on May 10, 2025
  2. AlexWaygood commented on May 10, 2025

    @AlexWaygood
    AlexWaygood
    on May 10, 2025
    Member
    More actions

    there was no removal notice in the docs

    What do you mean exactly? #105780 added detailed deprecation notes to the API reference for typing.TypedDict and to "What's new in Python 3.13". It also included a NEWS entry noting the deprecation, and added DeprecationWarnings at runtime.

  3. picnixz commented on May 10, 2025

    @picnixz
    picnixz
    on May 10, 2025
    MemberAuthor
    More actions

    I meant in the pending deprecation section (which had the other removal notices)

  4. AlexWaygood commented on May 10, 2025

    @AlexWaygood
    AlexWaygood
    on May 10, 2025
    Member
    More actions

    I see. Personally I think we've given enough notice for this removal in enough places, but I also don't mind if you want to add some notes there too and extend the deprecation period. It's not a huge maintenance burden for that code to hang around for a bit longer.

  5. picnixz commented on May 10, 2025

    @picnixz
    picnixz
    on May 10, 2025
    MemberAuthor
    More actions

    How about this:

    • Add entries in the "pending deprecation" section for 3.13 and 3.14
    • Go with the removal for 3.15.

    I just wanted to be sure it was fine on your side as you're a codeowner of typing.py. I also feel it's a bit weird that we don't remove the TypedDict kw syntax but remove the NamedTuple kw syntax so I'm all for the removal in 3.15 (it simplifies the code quite a lot)

  6. AlexWaygood commented on May 10, 2025

    @AlexWaygood
    AlexWaygood
    on May 10, 2025
    Member
    More actions

    Yeah that plan sounds fine by me! I don't think the syntax that was deprecated was widely used at all, and I think the pending removal was pretty well signalled

    Reacted by Jelle Zijlstra
  7. picnixz
    self-assigned this
    on May 10, 2025
  8. JelleZijlstra commented on May 10, 2025

    @JelleZijlstra
    JelleZijlstra
    on May 10, 2025
    Member
    More actions

    I'm also fine with getting rid of this (and the NamedTuple equivalent) now.

    Reacted by Alex Waygood
  9. picnixz commented on May 10, 2025

    @picnixz
    picnixz
    on May 10, 2025
    MemberAuthor
    More actions

    See #133822 for the NamedTuple equivalent. I'll do the TypedDict one tomorrow.

  10. picnixz
    changed the title [-]Remove deprecated keyword argument syntax for `typing.TypedDict`[/-] [+]Remove deprecated implicit empty sequence argument for `typing.TypedDict`[/+] on May 11, 2025
  11. picnixz
    added 2 commits that reference this issue on May 11, 2025

    gh-133823: require explicit empty sequence for 0-field `TypedDict` ob…

    8731211

    gh-133823: update "Pending Removal in 3.15" notes about `TypedDict` (#…

    f91127a
  12. miss-islington
    added 2 commits that reference this issue on May 11, 2025

    pythongh-133823: update "Pending Removal in 3.15" notes about `TypedD…

    3efb076

    pythongh-133823: update "Pending Removal in 3.15" notes about `TypedD…

    aadb81e
  13. picnixz
    added 2 commits that reference this issue on May 11, 2025

    [3.14] gh-133823: update "Pending Removal in 3.15" notes about `Typed…

    f7d7248

    [3.13] gh-133823: update "Pending Removal in 3.15" notes about `Typed…

    927da99
  14. picnixz
    closed this as completedon May 11, 2025
  15. Pranjal095
    added 2 commits that reference this issue on Jul 12, 2025

    pythongh-133823: require explicit empty sequence for 0-field `TypedDi…

    4a98935

    pythongh-133823: update "Pending Removal in 3.15" notes about `TypedD…

    7c431b4
  16. taegyunkim
    added 2 commits that reference this issue on Aug 4, 2025

    pythongh-133823: require explicit empty sequence for 0-field `TypedDi…

    e2be96c

    pythongh-133823: update "Pending Removal in 3.15" notes about `TypedD…

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

Metadata

Metadata

Assignees

  • @picnixz
    picnixz

Labels

stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytopic-typingtype-featureA feature request or enhancementA feature request or enhancement

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402503 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.