Skip to content

Fix wrong example in Protocol documentation (#2176)#2177

Closed
e1turin wants to merge 2 commits intopython:mainfrom
e1turin:fix/class-object-with-protocol-example
Closed

Fix wrong example in Protocol documentation (#2176)#2177
e1turin wants to merge 2 commits intopython:mainfrom
e1turin:fix/class-object-with-protocol-example

Conversation

@e1turin
Copy link

@e1turin e1turin commented Feb 13, 2026

Provide fix for documentation to make example correct. And apply common code style to make it look better.

@python-cla-bot
Copy link

python-cla-bot bot commented Feb 13, 2026

All commit authors signed the Contributor License Agreement.

CLA signed

@JelleZijlstra
Copy link
Member

The example is correct. This was discussed several times on the peps repo before we moved to the typing spec.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants