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
ReadOnly field can be added when subclassing a TypedDict with mutable extra_items #11037
Class A has mutable extra_items, while its subclass B adds a new read-only field. However, this field can be mutated by functions that accept type A, which violates the ReadOnly constraint. Why do pyright allow this?
Activity
Fixed bug that causes a false negative when a `TypedDict` overrides a…
Fixed bug that causes a false negative when a `TypedDict` overrides a…
erictraut commentedon Oct 22, 2025
This is addressed in pyright 1.1.407