summaryrefslogtreecommitdiffstats
path: root/Lib/typing.py
diff options
context:
space:
mode:
authorJelle Zijlstra <jelle.zijlstra@gmail.com>2021-05-04 09:29:49 (GMT)
committerGitHub <noreply@github.com>2021-05-04 09:29:49 (GMT)
commitb11557973476963f7c0fd0041eac175bc0d4c514 (patch)
tree5c69904eb3fe97e12f57ee7d0c8b90a9af0786a2 /Lib/typing.py
parentf6d7abc6e72294c5573709cca78ae252e03ebe3d (diff)
downloadcpython-b11557973476963f7c0fd0041eac175bc0d4c514.zip
cpython-b11557973476963f7c0fd0041eac175bc0d4c514.tar.gz
cpython-b11557973476963f7c0fd0041eac175bc0d4c514.tar.bz2
bpo-38352: Add to typing.__all__ (#25821)
This adds IO, TextIO, BinaryIO, Match, and Pattern. Co-authored-by: Ɓukasz Langa <lukasz@langa.pl> Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
Diffstat (limited to 'Lib/typing.py')
-rw-r--r--Lib/typing.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/Lib/typing.py b/Lib/typing.py
index ff96434..301a477 100644
--- a/Lib/typing.py
+++ b/Lib/typing.py
@@ -99,6 +99,13 @@ __all__ = [
'NamedTuple', # Not really a type.
'TypedDict', # Not really a type.
'Generator',
+
+ # Other concrete types.
+ 'BinaryIO',
+ 'IO',
+ 'Match',
+ 'Pattern',
+ 'TextIO',
# One-off things.
'AnyStr',