Skip to content

Conversation

@miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Apr 16, 2025

  • Explicitly say that isinstance/issubclass do not work on non-runtime checkable
    protocols.
  • Move the sentence "This raises TypeError when applied to a non-protocol class". It
    took me quite some time to decide what "this" was here: it refers to applying the
    decorator, not to an isinstance() call.
    (cherry picked from commit 14efcad)

Co-authored-by: Jelle Zijlstra jelle.zijlstra@gmail.com
Co-authored-by: Alex Waygood Alex.Waygood@Gmail.com


📚 Documentation preview 📚: https://cpython-previews--132607.org.readthedocs.build/

- Explicitly say that isinstance/issubclass do not work on non-runtime checkable
  protocols.
- Move the sentence "This raises TypeError when applied to a non-protocol class". It
  took me quite some time to decide what "this" was here: it refers to applying the
  decorator, not to an isinstance() call.
(cherry picked from commit 14efcad)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
@bedevere-app bedevere-app bot added awaiting review docs Documentation in the Doc dir skip news labels Apr 16, 2025
@github-project-automation github-project-automation bot moved this to Todo in Docs PRs Apr 16, 2025
@AlexWaygood AlexWaygood enabled auto-merge (squash) April 16, 2025 17:47
@AlexWaygood AlexWaygood merged commit f9578dc into python:3.13 Apr 16, 2025
29 checks passed
@github-project-automation github-project-automation bot moved this from Todo to Done in Docs PRs Apr 16, 2025
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 skip issue skip news

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants