mirror of
https://github.com/python/cpython
synced 2024-10-14 17:59:38 +00:00
784905dbef
Co-authored-by: Łukasz Langa <lukasz@langa.pl> Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
8 lines
138 B
Python
8 lines
138 B
Python
# Tests that top-level ClassVar is not allowed
|
|
|
|
from __future__ import annotations
|
|
|
|
from typing import ClassVar
|
|
|
|
wrong: ClassVar[int] = 1
|