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>
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 @@
'NamedTuple', # Not really a type.
'TypedDict', # Not really a type.
'Generator',
+
+ # Other concrete types.
+ 'BinaryIO',
+ 'IO',
+ 'Match',
+ 'Pattern',
+ 'TextIO',
# One-off things.
'AnyStr',