@@ -279,11 +279,6 @@ new features to the Python type system. In general, new features can
279279be used in typeshed as soon as the PEP has been accepted and implemented
280280and most type checkers support the new feature.
281281
282- Accepted features that * cannot* yet be used in typeshed include:
283- - [ PEP 570] ( https://www.python.org/dev/peps/pep-0570/ ) (positional-only
284- arguments): see [ #4972 ] ( https://github.com/python/typeshed/issues/4972 ) ,
285- use argument names prefixed with ` __ ` instead
286-
287282The following features are partially supported:
288283- [ PEP 702] ( https://peps.python.org/pep-0702/ ) (` @deprecated() ` )
289284 - For now, cannot be used in combination with other decorators
@@ -309,21 +304,13 @@ Features from the `typing` module that are not present in all
309304supported Python 3 versions must be imported from ` typing_extensions `
310305instead in typeshed stubs. This currently affects:
311306
312- - ` Final ` and ` @final ` (new in Python 3.8)
313- - ` Literal ` (new in Python 3.8)
314- - ` SupportsIndex ` (new in Python 3.8)
315- - ` TypedDict ` (new in Python 3.8)
316307- ` Concatenate ` (new in Python 3.10)
317308- ` ParamSpec ` (new in Python 3.10)
318309- ` TypeGuard ` (new in Python 3.10)
319310- ` Self ` (new in Python 3.11)
320311- ` LiteralString ` (new in Python 3.11)
321312- ` @deprecated ` (new in Python 3.13; in the ` warnings ` module)
322313
323- Two exceptions are ` Protocol ` and ` runtime_checkable ` : although
324- these were added in Python 3.8, they can be used in stubs regardless
325- of Python version.
326-
327314Some type checkers implicitly promote the ` bytearray ` and
328315` memoryview ` types to ` bytes ` .
329316[ PEP 688] ( https://www.python.org/dev/peps/pep-0688/ ) removes
0 commit comments