bpo-45166: fixes get_type_hints failure on Final (GH-28279)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
This commit is contained in:
Nikita Sobolev 2021-09-25 11:56:22 +03:00 committed by GitHub
parent 4c0fc65cd8
commit 784905dbef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 56 additions and 10 deletions

7
Lib/test/ann_module6.py Normal file
View file

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