Skip to content

pyright still depends on typing._TypedDict #11081

Description

Describe the bug
As announced in https://discuss.python.org/t/removing-type-checker-internals-from-typeshed/87960, we plan to (re)move type-checker-special internals from typeshed. Eric Traut (@erictraut) actually did the necessary changes in #10437.

But when trying to remove typing._TypedDict from typeshed in python/typeshed#14960, pyright starts to report errors like this for all TypedDicts:

/home/runner/work/typeshed/typeshed/stdlib/_ssl.pyi
  /home/runner/work/typeshed/typeshed/stdlib/_ssl.pyi:24:7 - error: All base classes for TypedDict classes must also be TypedDict classes
    Class "TypedDict" is not a TypedDict (reportGeneralTypeIssues)
  /home/runner/work/typeshed/typeshed/stdlib/_ssl.pyi:38:7 - error: All base classes for TypedDict classes must also be TypedDict classes

So it seems that there is some lingering issue in pyright.

Activity

  1. erictraut commented on Nov 2, 2025

    @erictraut
    Collaborator

    Thanks for reporting. I think I had this working at one point, but it regressed and was able to fall back on typing._TypedDict, so none of the tests detected the regression. This will be fixed in the next release.

  2. rchiodo commented on Jan 8, 2026

    @rchiodo
    Collaborator

    This is addressed in pyright 1.1.408

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

    addressed in next versionIssue is fixed and will appear in next published versionbugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions