Skip to content

Commit 520dcd1

Browse files
JelleZijlstraAlexWaygoodhauntsaninja
authored
Re-export all names from typing (python#196)
* Re-export all names from typing Fixes python#50. I decided to exclude top-level names that have a definite removal timeline (io, re, ByteString); there's no point in re-exporting them now. Many other names are deprecated without a definite removal plan (PEP 585). If they do get removed eventually, typing-extensions can simply re-export the builtin/collections.abc names. In the documentation, I add a separate section listing all the names that are pure aliases for typing. This makes it easier to distinguish the cases where there is something more interesting going on in typing-extensions. Co-authored-by: Alex Waygood <[email protected]> Co-authored-by: Shantanu <[email protected]>
1 parent a2c6c88 commit 520dcd1

File tree

4 files changed

+390
-58
lines changed

4 files changed

+390
-58
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Unreleased
22

3+
- `typing_extensions` now re-exports all names in the standard library's
4+
`typing` module, except the deprecated `ByteString`. Patch by Jelle
5+
Zijlstra.
36
- Due to changes in the implementation of `typing_extensions.Protocol`,
47
`typing.runtime_checkable` can now be used on `typing_extensions.Protocol`
58
(previously, users had to use `typing_extensions.runtime_checkable` if they

0 commit comments

Comments
 (0)