Skip to content

Commit e1bcc88

Browse files
miss-islingtonambvFidget-SpinnerJelleZijlstra
authored
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 b115579) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
1 parent 2046fb3 commit e1bcc88

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

Lib/typing.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,13 @@
9999
'NamedTuple', # Not really a type.
100100
'TypedDict', # Not really a type.
101101
'Generator',
102+
103+
# Other concrete types.
104+
'BinaryIO',
105+
'IO',
106+
'Match',
107+
'Pattern',
108+
'TextIO',
102109

103110
# One-off things.
104111
'AnyStr',
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Add ``IO``, ``BinaryIO``, ``TextIO``, ``Match``, and ``Pattern`` to
2+
``typing.__all__``. Patch by Jelle Zijlstra.

0 commit comments

Comments
 (0)