Skip to content

Commit 4ee32e6

Browse files
committed
Update typing module to 3.10.5
1 parent 24c460b commit 4ee32e6

File tree

4 files changed

+461
-52
lines changed

4 files changed

+461
-52
lines changed

Lib/test/ann_module5.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Used by test_typing to verify that Final wrapped in ForwardRef works.
2+
3+
from __future__ import annotations
4+
5+
from typing import Final
6+
7+
name: Final[str] = "final"
8+
9+
class MyClass:
10+
value: Final = 3000

Lib/test/ann_module6.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Tests that top-level ClassVar is not allowed
2+
3+
from __future__ import annotations
4+
5+
from typing import ClassVar
6+
7+
wrong: ClassVar[int] = 1

0 commit comments

Comments
 (0)