Updated description
This commit is contained in:
parent
1283be137e
commit
4c48f15eff
@ -18,26 +18,22 @@ The `typing_extensions` module serves two related purposes:
|
|||||||
|
|
||||||
- Enable use of new type system features on older Python versions. For example,
|
- 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
|
`typing.TypeGuard` is new in Python 3.10, but `typing_extensions` allows
|
||||||
users on Python 3.6 through 3.9 to use it too.
|
users on previous Python versions to use it too.
|
||||||
- Enable experimentation with new type system PEPs before they are accepted and
|
- Enable experimentation with new type system PEPs before they are accepted and
|
||||||
added to the `typing` module.
|
added to the `typing` module.
|
||||||
|
|
||||||
New features may be added to `typing_extensions` as soon as they are specified
|
`typing_extensions` is treated specially by static type checkers such as
|
||||||
in a PEP that has been added to the [python/peps](https://github.com/python/peps)
|
mypy and pyright. Objects defined in `typing_extensions` are treated the same
|
||||||
repository. If the PEP is accepted, the feature will then be added to `typing`
|
way as equivalent forms in `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
|
`typing_extensions` uses
|
||||||
[Semantic Versioning](https://semver.org/). The
|
[Semantic Versioning](https://semver.org/). The
|
||||||
major version is incremented for all backwards-incompatible changes.
|
major version will be incremented only for backwards-incompatible changes.
|
||||||
Therefore, it's safe to depend
|
Therefore, it's safe to depend
|
||||||
on `typing_extensions` like this: `typing_extensions >=x.y, <(x+1)`,
|
on `typing_extensions` like this: `typing_extensions >=x.y, <(x+1)`,
|
||||||
where `x.y` is the first version that includes all features you need.
|
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,
|
`typing_extensions` supports Python versions 3.7 and higher.}
|
||||||
support for older Python versions will be dropped some time after that version
|
|
||||||
reaches end of life.}
|
|
||||||
|
|
||||||
%description %_description
|
%description %_description
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user