diff options
| author | Jeremy Hansen <jebrhansen+SBo@gmail.com> | 2024-08-31 09:18:27 +0700 |
|---|---|---|
| committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2024-08-31 19:01:12 +0700 |
| commit | 6c1a803cc393ec38989a9ad8994d5f4283b3a927 (patch) | |
| tree | afde91a01dc92ed77c775c6685a7b9386c4f2055 /python/python3-typing-extensions/README | |
| parent | 5b9c1ba9f943a8699ec01aa2e6a9c52712e6a201 (diff) | |
python/python3-typing-extensions: Added (Python3 version of typing-extensions).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'python/python3-typing-extensions/README')
| -rw-r--r-- | python/python3-typing-extensions/README | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/python/python3-typing-extensions/README b/python/python3-typing-extensions/README new file mode 100644 index 0000000000..1f4ec70cc5 --- /dev/null +++ b/python/python3-typing-extensions/README @@ -0,0 +1,14 @@ +Typing Extensions – Backported and Experimental Type Hints for Python + +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. + +typing_extensions is treated specially by static type checkers such as +mypy and pyright. Objects defined in typing_extensions are treated the +same way as equivalent forms in typing. |
