python-typing-extensions
Port variant py39
Summary Backported type hints for Python 3.5+ (3.9)
Package version 4.4.0
Homepage No known homepage
Keywords python
Maintainer Python Automaton
License Not yet specified
Other variants py310
Ravenports Buildsheet | History
Ravensource Port Directory | History
Last modified 06 OCT 2022, 02:20:06 UTC
Port created 20 APR 2020, 15:00:59 UTC
Subpackage Descriptions
single # Typing Extensions [![Chat at https://gitter.im/python/typing]](https://gitter.im/python/typing) ## Overview The `typing_extensions` module serves two related purposes: - Enable use of new type system features on older Python versions. For example, `typing.TypeGuard` is new in Python 3.10, but `typing_extensions` allows users on previous Python versions to use it too. - Enable experimentation with new type system PEPs before they are accepted and added to the `typing` module. New features may be added to `typing_extensions` as soon as they are specified in a PEP that has been added to the [python/peps] repository. If the PEP is accepted, the feature will then be added to `typing` for the next CPython release. No typing PEP has been rejected so far, so we haven't yet figured out how to deal with that possibility. Starting with version 4.0.0, `typing_extensions` uses [Semantic Versioning]. The major version is incremented for all backwards-incompatible changes. Therefore, it's safe to depend on `typing_extensions` like this: `typing_extensions >=x.y, <(x+1)`, where `x.y` is the first version that includes all features you need. `typing_extensions` supports Python versions 3.7 and higher. In the future, support for older Python versions will be dropped some time after that version reaches end of life. ## Included items This module currently contains the following: - Experimental features - `override` (see PEP 698) - The `default=` argument to `TypeVar`, `ParamSpec`, and `TypeVarTuple` (see PEP 696) - The `infer_variance=` argument to `TypeVar` (see PEP 695) - In `typing` since Python 3.11 - `assert_never` - `assert_type` - `clear_overloads` - `@dataclass_transform()` (see PEP 681) - `get_overloads` - `LiteralString` (see PEP 675) - `Never` - `NotRequired` (see PEP 655) - `reveal_type` - `Required` (see PEP 655) - `Self` (see PEP 673) - `TypeVarTuple` (see PEP 646; the `typing_extensions` version supports the `default=` argument from PEP 696) - `Unpack` (see PEP 646) - In `typing` since Python 3.10 - `Concatenate` (see PEP 612) - `ParamSpec` (see PEP 612; the `typing_extensions` version supports the `default=` argument from PEP 696) - `ParamSpecArgs` (see PEP 612) - `ParamSpecKwargs` (see PEP 612) - `TypeAlias` (see PEP 613) - `TypeGuard` (see PEP 647) - `is_typeddict` - In `typing` since Python 3.9 - `Annotated` (see PEP 593) - In `typing` since Python 3.8 - `final` (see PEP 591) - `Final` (see PEP 591) - `Literal` (see PEP 586) - `Protocol` (see PEP 544) - `runtime_checkable` (see PEP 544) - `TypedDict` (see PEP 589) - `get_origin` (`typing_extensions` provides this function only in Python 3.7+) - `get_args` (`typing_extensions` provides this function only in Python 3.7+) - In `typing` since Python 3.7 - `OrderedDict` - In `typing` since Python 3.5 or 3.6 (see [the typing documentation] for details)
Configuration Switches (platform-specific settings discarded)
PY310 OFF Build using Python 3.10 PY39 ON Build using Python 3.9
Package Dependencies by Type
Build (only) python-pip:single:py39
autoselect-python:single:standard
Build and Runtime python39:single:standard
Download groups
main mirror://PYPIWHL/0b/8e/f1a0a5a76cfef77e1eb6004cb49e5f8d72634da638420b9ea492ce8305e8
Distribution File Information
16fa4864408f655d35ec496218b85f79b3437c829e93320c7c9215ccfd92489e 26662 typing_extensions-4.4.0-py3-none-any.whl
Ports that require python-typing-extensions:py39
python-PyPDF2:py39 Pure Python PDF Toolkit (3.9)
python-Twisted:py39 Asynchronous networking framework (3.9)
python-astroid:py39 Abstract syntax tree with inference support (3.9)
python-black:py39 Uncompromising code formatter (3.9)
python-myst-parser:py39 Extended commonmark compliant parser (3.9)
python-pylint:py39 Python code static checker (3.9)
python-setuptools-rust:py39 Setuptools Rust extension plugin (3.9)
python-setuptools-scm:py39 Package to manage versions by scm tags (3.9)
python-swagger-spec-validator:py39 Validation of Swagger specifications (3.9)