Skip to content

Commit b115579

Browse files
JelleZijlstraambvFidget-Spinner
authored
bpo-38352: Add to typing.__all__ (#25821)
This adds IO, TextIO, BinaryIO, Match, and Pattern. Co-authored-by: Łukasz Langa <[email protected]> Co-authored-by: Ken Jin <[email protected]>
1 parent f6d7abc commit b115579

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
@@ -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)