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" # 오류: 클래스 변수를 인스턴스에서 설정함