-
-
Notifications
You must be signed in to change notification settings - Fork 31.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bpo-35089: Don't mention typing.io and typing.re #10173
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I actually like the original formulation more. But this one is also fine.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe "and its subclasses".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 subclassesTextIO
andBinaryIO
, 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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@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