cpython/Lib/test/typinganndata/ann_module6.py

8 lines
138 B
Python
Raw Normal View History

# Tests that top-level ClassVar is not allowed
from __future__ import annotations
from typing import ClassVar
wrong: ClassVar[int] = 1