bpo-35089: Don't mention typing.io and typing.re#10173
bpo-35089: Don't mention typing.io and typing.re#10173ilevkivskyi merged 3 commits intopython:masterfrom
Conversation
|
I suggest you add a NEWS entry. |
| and ``BinaryIO``, deriving from ``IO[str]`` and ``IO[bytes]``, | ||
| respectively. These represent the types of I/O streams such as returned by | ||
| Generic type ``IO[AnyStr]`` and subclasses ``TextIO(IO[str])`` | ||
| and ``BinaryIO(IO[bytes])`` |
There was a problem hiding this comment.
I actually like the original formulation more. But this one is also fine.
There was a problem hiding this comment.
The problem is that "This defined" is now wrong, but when removing the verb you have to reformulate. I first ended up with:
The generic type
IO[AnyStr]and subclassesTextIOandBinaryIO, deriving fromIO[str]andIO[bytes], respectively, represent the types of I/O streams such as returned byopen.
But I found this hard to understand.
There was a problem hiding this comment.
@srittau You can also try splitting the sentence in two parts. Anyway, this is not very important.
|
Thanks @srittau for the PR, and @ilevkivskyi for merging it 🌮🎉.. I'm working now to backport this PR to: 3.6, 3.7. |
https://bugs.python.org/issue35089 (cherry picked from commit c8a8d6b) Co-authored-by: Sebastian Rittau <srittau@rittau.biz>
|
GH-10177 is a backport of this pull request to the 3.7 branch. |
|
GH-10178 is a backport of this pull request to the 3.6 branch. |
https://bugs.python.org/issue35089 (cherry picked from commit c8a8d6b) Co-authored-by: Sebastian Rittau <srittau@rittau.biz>
https://bugs.python.org/issue35089 (cherry picked from commit c8a8d6b) Co-authored-by: Sebastian Rittau <srittau@rittau.biz>
https://bugs.python.org/issue35089 (cherry picked from commit c8a8d6b) Co-authored-by: Sebastian Rittau <srittau@rittau.biz>
They were originally removed in pythonGH-10173 per bpo-35089, but then readded in pythonGH-21574. Cf. bpo-38291 for decision to remove.
…26113) They were originally removed in pythonGH-10173 per bpo-35089, but then readded in pythonGH-21574. Cf. bpo-38291 for decision to remove. (cherry picked from commit 8a76683) Co-authored-by: Sebastian Rittau <srittau@rittau.biz>
…26113) They were originally removed in pythonGH-10173 per bpo-35089, but then readded in pythonGH-21574. Cf. bpo-38291 for decision to remove. (cherry picked from commit 8a76683) Co-authored-by: Sebastian Rittau <srittau@rittau.biz>
…26113) They were originally removed in pythonGH-10173 per bpo-35089, but then readded in pythonGH-21574. Cf. bpo-38291 for decision to remove.
https://bugs.python.org/issue35089