mirror of https://github.com/python/cpython.git
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 b115579734
)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
This commit is contained in:
parent
2046fb35e4
commit
e1bcc88a50
|
@ -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',
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
Add ``IO``, ``BinaryIO``, ``TextIO``, ``Match``, and ``Pattern`` to
|
||||
``typing.__all__``. Patch by Jelle Zijlstra.
|
Loading…
Reference in New Issue