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