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
Address grievejia review comments on Never/NoReturn spec
- Use int instead of object as the non-Never witness (object is already
expected to not be a subtype of most things; int is more illuminating)
- Rephrase to avoid the too-strong 'No type other than Never' claim
(uninhabitable types like tuple[Never, int] are also subtypes of Never)
- Qualify all 'every type T' as 'every fully static type T' throughout
(the subtype relation is undefined for gradual types like Any)
- Replace list[Never] with Sequence[Never] in the covariant example
(list is invariant, so list[Never] is not assignable to list[int];
Sequence is covariant and correctly demonstrates the bottom-type behaviour)
0 commit comments