Closed InvincibleRMC closed 3 days ago
Adds support for Never and NoReturn.
Allows support for annotating functions that do not return. It is typically used in superclass that do not implement functions.
class Foo: def func() -> Never: raise Exception() def func2() -> NoReturn: raise Exception() class Bar(Foo): def func() -> int: return 3 def func2() -> int: return 3
Adds support for `typing.Never` and `typing.NoReturn`.
Description
Adds support for Never and NoReturn.
Allows support for annotating functions that do not return. It is typically used in superclass that do not implement functions.
Suggested changelog entry: