Skip to content

Commit 00726e5

Browse files
miss-islingtonambvFidget-SpinnerJelleZijlstra
authored
bpo-38352: Add to typing.__all__ (GH-25821) (#25885)
This adds IO, TextIO, BinaryIO, Match, and Pattern. Co-authored-by: Łukasz Langa <[email protected]> Co-authored-by: Ken Jin <[email protected]> (cherry picked from commit b115579) Co-authored-by: Jelle Zijlstra <[email protected]>
1 parent 7a92bee commit 00726e5

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

Lib/typing.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,13 @@
9595
'NamedTuple', # Not really a type.
9696
'TypedDict', # Not really a type.
9797
'Generator',
98+
99+
# Other concrete types.
100+
'BinaryIO',
101+
'IO',
102+
'Match',
103+
'Pattern',
104+
'TextIO',
98105

99106
# One-off things.
100107
'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)