void () { doTestByText(""" from typing import NoReturn class A: pass assert isinstance(A(), <error descr="'NoReturn' cannot be used with instance and class checks">NoReturn</error>) B = NoReturn assert issubclass(A, <error descr="'NoReturn' cannot be used with instance and class checks">B</error>)"""); }