Skip to content

Commit 02a1d1d

Browse files
authored
Merge pull request RustPython#3877 from moreal/update-typing-3105
Update `typing` module to 3.10.5
2 parents 223ac8c + 4ee32e6 commit 02a1d1d

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)