Skip to content

pyright still depends on typing._TypedDict #11081

@srittau

Description

@srittau

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. @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.

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