SIGN IN SIGN UP

typing docs: Clarify Protocol / runtime_checkable docs (#132606)

- 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.

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
J
Jelle Zijlstra committed
14efcadfd4cbdab0ff204cad9d89871cc64e6cfb
Parent: 2925462
Committed by GitHub <noreply@github.com> on 4/16/2025, 5:44:17 PM