Skip to content
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

Merged
merged 3 commits into from
Oct 28, 2018

Conversation

srittau
Copy link
Contributor

@srittau srittau commented Oct 28, 2018

@gvanrossum
Copy link
Member

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])``
Copy link
Member

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.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe "and its subclasses".

Copy link
Contributor Author

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 subclasses TextIO and BinaryIO, deriving from IO[str] and IO[bytes], respectively, represent the types of I/O streams such as returned by open.

But I found this hard to understand.

Copy link
Member

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.

@miss-islington
Copy link
Contributor

Thanks @srittau for the PR, and @ilevkivskyi for merging it 🌮🎉.. I'm working now to backport this PR to: 3.6, 3.7.
🐍🍒⛏🤖 I'm not a witch! I'm not a witch!

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Oct 28, 2018
https://bugs.python.org/issue35089
(cherry picked from commit c8a8d6b)

Co-authored-by: Sebastian Rittau <srittau@rittau.biz>
@bedevere-bot
Copy link

GH-10177 is a backport of this pull request to the 3.7 branch.

@bedevere-bot
Copy link

GH-10178 is a backport of this pull request to the 3.6 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Oct 28, 2018
https://bugs.python.org/issue35089
(cherry picked from commit c8a8d6b)

Co-authored-by: Sebastian Rittau <srittau@rittau.biz>
miss-islington added a commit that referenced this pull request Oct 28, 2018
https://bugs.python.org/issue35089
(cherry picked from commit c8a8d6b)

Co-authored-by: Sebastian Rittau <srittau@rittau.biz>
miss-islington added a commit that referenced this pull request Oct 28, 2018
https://bugs.python.org/issue35089
(cherry picked from commit c8a8d6b)

Co-authored-by: Sebastian Rittau <srittau@rittau.biz>
@srittau srittau deleted the typing-doc branch October 28, 2018 16:34
srittau added a commit to srittau/cpython that referenced this pull request May 13, 2021
They were originally removed in pythonGH-10173 per bpo-35089, but then
readded in pythonGH-21574. Cf. bpo-38291 for decision to remove.
gvanrossum pushed a commit that referenced this pull request Jun 14, 2021
They were originally removed in GH-10173 per bpo-35089, but then
readded in GH-21574. Cf. bpo-38291 for decision to remove.
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jun 14, 2021
…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>
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jun 14, 2021
…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>
miss-islington added a commit that referenced this pull request Jun 14, 2021
They were originally removed in GH-10173 per bpo-35089, but then
readded in GH-21574. Cf. bpo-38291 for decision to remove.
(cherry picked from commit 8a76683)

Co-authored-by: Sebastian Rittau <srittau@rittau.biz>
miss-islington added a commit that referenced this pull request Jun 14, 2021
They were originally removed in GH-10173 per bpo-35089, but then
readded in GH-21574. Cf. bpo-38291 for decision to remove.
(cherry picked from commit 8a76683)

Co-authored-by: Sebastian Rittau <srittau@rittau.biz>
jdevries3133 pushed a commit to jdevries3133/cpython that referenced this pull request Jun 19, 2021
…26113)

They were originally removed in pythonGH-10173 per bpo-35089, but then
readded in pythonGH-21574. Cf. bpo-38291 for decision to remove.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants