Never dan NoReturn mewakili tipe terbawah, tipe yang tidak memiliki anggota.
typing.Never
from typing import Never
def never_call_me(arg: Never) -> None:
pass
def int_or_str(arg: int | str) -> None:
never_call_me(arg) type checker error
match arg:
case int():
print("It's an int")
case str():
print("It's a str")
case _:
never_call_me(arg) OK, arg is of type Never