You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+28-28Lines changed: 28 additions & 28 deletions
Original file line number
Diff line number
Diff line change
@@ -35,48 +35,48 @@ This module currently contains the following:
35
35
36
36
- Experimental features
37
37
38
-
-`override` (see PEP 698)
39
-
- The `default=` argument to `TypeVar`, `ParamSpec`, and `TypeVarTuple` (see PEP 696)
40
-
- The `infer_variance=` argument to `TypeVar` (see PEP 695)
38
+
-`override` (see [PEP 698](https://peps.python.org/pep-0698/))
39
+
- The `default=` argument to `TypeVar`, `ParamSpec`, and `TypeVarTuple` (see [PEP 696](https://peps.python.org/pep-0696/))
40
+
- The `infer_variance=` argument to `TypeVar` (see [PEP 695](https://peps.python.org/pep-0695/))
41
41
42
42
- In `typing` since Python 3.11
43
43
44
44
-`assert_never`
45
45
-`assert_type`
46
46
-`clear_overloads`
47
-
-`@dataclass_transform()` (see PEP 681)
47
+
-`@dataclass_transform()` (see [PEP 681](https://peps.python.org/pep-0681/))
48
48
-`get_overloads`
49
-
-`LiteralString` (see PEP 675)
49
+
-`LiteralString` (see [PEP 675](https://peps.python.org/pep-0675/))
50
50
-`Never`
51
-
-`NotRequired` (see PEP 655)
51
+
-`NotRequired` (see [PEP 655](https://peps.python.org/pep-0655/))
52
52
-`reveal_type`
53
-
-`Required` (see PEP 655)
54
-
-`Self` (see PEP 673)
55
-
-`TypeVarTuple` (see PEP 646; the `typing_extensions` version supports the `default=` argument from PEP 696)
56
-
-`Unpack` (see PEP 646)
53
+
-`Required` (see [PEP 655](https://peps.python.org/pep-0655/))
54
+
-`Self` (see [PEP 673](https://peps.python.org/pep-0673/))
55
+
-`TypeVarTuple` (see [PEP 646](https://peps.python.org/pep-0646/); the `typing_extensions` version supports the `default=` argument from [PEP 696](https://peps.python.org/pep-0696/))
56
+
-`Unpack` (see [PEP 646](https://peps.python.org/pep-0646/))
57
57
58
58
- In `typing` since Python 3.10
59
59
60
-
-`Concatenate` (see PEP 612)
61
-
-`ParamSpec` (see PEP 612; the `typing_extensions` version supports the `default=` argument from PEP 696)
62
-
-`ParamSpecArgs` (see PEP 612)
63
-
-`ParamSpecKwargs` (see PEP 612)
64
-
-`TypeAlias` (see PEP 613)
65
-
-`TypeGuard` (see PEP 647)
60
+
-`Concatenate` (see [PEP 612](https://peps.python.org/pep-0612/))
61
+
-`ParamSpec` (see [PEP 612](https://peps.python.org/pep-0612/); the `typing_extensions` version supports the `default=` argument from [PEP 696](https://peps.python.org/pep-0696/))
62
+
-`ParamSpecArgs` (see [PEP 612](https://peps.python.org/pep-0612/))
63
+
-`ParamSpecKwargs` (see [PEP 612](https://peps.python.org/pep-0612/))
64
+
-`TypeAlias` (see [PEP 613](https://peps.python.org/pep-0613/))
65
+
-`TypeGuard` (see [PEP 647](https://peps.python.org/pep-0647/))
66
66
-`is_typeddict`
67
67
68
68
- In `typing` since Python 3.9
69
69
70
-
-`Annotated` (see PEP 593)
70
+
-`Annotated` (see [PEP 593](https://peps.python.org/pep-0593/))
71
71
72
72
- In `typing` since Python 3.8
73
73
74
-
-`final` (see PEP 591)
75
-
-`Final` (see PEP 591)
76
-
-`Literal` (see PEP 586)
77
-
-`Protocol` (see PEP 544)
78
-
-`runtime_checkable` (see PEP 544)
79
-
-`TypedDict` (see PEP 589)
74
+
-`final` (see [PEP 591](https://peps.python.org/pep-0591/))
75
+
-`Final` (see [PEP 591](https://peps.python.org/pep-0591/))
76
+
-`Literal` (see [PEP 586](https://peps.python.org/pep-0586/))
77
+
-`Protocol` (see [PEP 544](https://peps.python.org/pep-0544/))
78
+
-`runtime_checkable` (see [PEP 544](https://peps.python.org/pep-0544/))
79
+
-`TypedDict` (see [PEP 589](https://peps.python.org/pep-0589/))
80
80
-`get_origin` (`typing_extensions` provides this function only in Python 3.7+)
81
81
-`get_args` (`typing_extensions` provides this function only in Python 3.7+)
82
82
@@ -92,7 +92,7 @@ This module currently contains the following:
92
92
-`AsyncIterator`
93
93
-`Awaitable`
94
94
-`ChainMap`
95
-
-`ClassVar` (see PEP 526)
95
+
-`ClassVar` (see [PEP 526](https://peps.python.org/pep-0526/))
96
96
-`ContextManager`
97
97
-`Coroutine`
98
98
-`Counter`
@@ -111,7 +111,7 @@ This module currently contains the following:
111
111
112
112
-`Any` (supports inheritance since Python 3.11)
113
113
-`NamedTuple` (supports multiple inheritance with `Generic` since Python 3.11)
114
-
-`TypeVar` (see PEPs 695 and 696)
114
+
-`TypeVar` (see PEPs [695](https://peps.python.org/pep-0695/) and [696](https://peps.python.org/pep-0696/))
115
115
116
116
# Other Notes and Limitations
117
117
@@ -136,7 +136,7 @@ Certain objects were changed after they were added to `typing`, and
136
136
- Since Python 3.11, it has been possible to inherit from `Any` at
137
137
runtime. `typing_extensions.Any` also provides this capability.
138
138
-`TypeVar` gains two additional parameters, `default=` and `infer_variance=`,
139
-
in the draft PEPs 695 and 696, which are being considered for inclusion
139
+
in the draft PEPs [695](https://peps.python.org/pep-0695/) and [696](https://peps.python.org/pep-0696/), which are being considered for inclusion
140
140
in Python 3.12.
141
141
142
142
There are a few types whose interface was modified between different
@@ -150,12 +150,12 @@ Certain types have incorrect runtime behavior due to limitations of older
150
150
versions of the typing module:
151
151
152
152
-`ParamSpec` and `Concatenate` will not work with `get_args` and
153
-
`get_origin`. Certain PEP 612 special cases in user-defined
153
+
`get_origin`. Certain [PEP 612](https://peps.python.org/pep-0612/) special cases in user-defined
154
154
`Generic`s are also not available.
155
155
156
156
These types are only guaranteed to work for static type checking.
157
157
158
158
## Running tests
159
159
160
160
To run tests, navigate into the appropriate source directory and run
0 commit comments