Skip to content

invalid-self-type example in the docs does not report the error #3785

Closed

Activity

  1. self-assigned this
    on Jul 2, 2026
  2. added a commit that references this issue on Jul 6, 2026
    64cb484
  3. DetachHead commented on Jul 28, 2026

    @DetachHead
    ContributorAuthor

    @yangdanny97 just curious whether this restriction is a limitation of pyrefly or if it's enforced by the spec? i couldn't find anywhere that states Self in TypedDict isn't allowed. pyright and ty don't have an issue with it (although it doesn't seem to work properly in ty, see astral-sh/ty#4101)

  4. added a commit that references this issue on Aug 12, 2026
    00d774e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentation

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions