ClassVar アノテーションの無効な使用箇所を報告します。

例:


from typing import ClassVar


class Cat:
    color: ClassVar[str] = "white"
    weight: int

    def __init__(self, weight: int):
        self.weight = weight


Cat.color = "black"  # OK
my_cat = Cat(5)
my_cat.color = "gray"  #エラー。インスタンスに対してクラス変数を設定しています