Open
Description
from typing import NoReturn, Never, Self and TypeAlias
NoReturn[int]
Never[int]
Self[int]
TypeAlias[int]
All of these usages are a 'no error moment'.
These methods exist at runtime, but are noops that just raise TypeError
s (:trollface:)
I would expect warnings on any of these usaages especially Self
as I could imagine every single person trying to use it with type parameters(it doesn't support type parameters 😢).
Activity
NoReturn
,Never
,Self
andTypeAlias
are not subscriptable python/typeshed#7507