Sitelet https://web.archive.org/web/20260624094735/https://github.com/python/cpython/pull/27014
Skip to content

Fix ref to protocol class in code example#27014

Closed
akulakov wants to merge 1 commit into
python:mainfrom
akulakov:Fix-protocol-ref-typing-code-example
Closed

Fix ref to protocol class in code example#27014
akulakov wants to merge 1 commit into
python:mainfrom
akulakov:Fix-protocol-ref-typing-code-example

Conversation

@akulakov

@akulakov akulakov commented Jul 4, 2021

Copy link
Copy Markdown
Contributor

In code example for typing.Protocol, reference to the previous example is used, instead it should reference the C class used in current example. As it is now, it's confusing and code sample is not runnable.

@bedevere-bot bedevere-bot added the docs Documentation in the Doc dir label Jul 4, 2021
@gvanrossum

Copy link
Copy Markdown
Member

Hm, the original looks right to me. The point of the example is that C conforms to Proto, IIUC. @Fidget-Spinner

@akulakov

akulakov commented Jul 5, 2021

Copy link
Copy Markdown
Contributor Author

@gvanrossum Sorry about that, I've misunderstood the example.. closing the PR.

@akulakov akulakov closed this Jul 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting review docs Documentation in the Doc dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants