diff options
Diffstat (limited to 'Lib/test/ann_module5.py')
-rw-r--r-- | Lib/test/ann_module5.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Lib/test/ann_module5.py b/Lib/test/ann_module5.py new file mode 100644 index 0000000..837041e --- /dev/null +++ b/Lib/test/ann_module5.py @@ -0,0 +1,10 @@ +# 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 |