mirror of
https://github.com/python/cpython.git
synced 2026-01-29 06:06:01 +00:00
Co-authored-by: Łukasz Langa <lukasz@langa.pl> Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com> (cherry picked from commit 784905dbeff68cf788bbeefe0a675af1af04affc) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
11 lines
202 B
Python
11 lines
202 B
Python
# Used by test_typing to verify that Final wrapped in ForwardRef works.
|
|
|
|
from __future__ import annotations
|
|
|
|
from typing import Final
|
|
|
|
name: Final[str] = "final"
|
|
|
|
class MyClass:
|
|
value: Final = 3000
|