summaryrefslogtreecommitdiff
path: root/Lib/typing.py
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2021-05-04 02:51:33 -0700
committerGitHub <noreply@github.com>2021-05-04 11:51:33 +0200
commite1bcc88a502aa0239b6bcc4da3fe024307fd27f4 (patch)
treea995f11f02cd6bfb0cd7e1b545c02053ca0a75de /Lib/typing.py
parent2046fb35e4e0986523bd0f6214fc318a414c8b97 (diff)
downloadcpython-git-e1bcc88a502aa0239b6bcc4da3fe024307fd27f4.tar.gz
bpo-38352: Add to typing.__all__ (GH-25821) (#25884)
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> (cherry picked from commit b11557973476963f7c0fd0041eac175bc0d4c514) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.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 ff964343c5..301a47745d 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',