You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
invalid-self-type example in the docs does not report the error #3785
@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)
Activity
disallow self in typeddict
DetachHead commentedon Jul 28, 2026
@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
SelfinTypedDictisn'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)disallow self in typeddict