Skip to content

Commit 62dcdfe

Browse files
committed
Simplify non-RC proto refs in test class docstrings
1 parent 8886908 commit 62dcdfe

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Lib/test/test_typing.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4470,18 +4470,18 @@ class RCProto1(Protocol):
44704470
"""I am runtime-checkable."""
44714471

44724472
class InheritedRCProto1(RCProto1, Protocol):
4473-
"""Bare, but runtime-checkability is "inherited"."""
4473+
"""I am accidentally runtime-checkable (by inheritance)."""
44744474

44754475
@runtime_checkable
44764476
class RCProto2(InheritedRCProto1, Protocol):
44774477
"""Explicit RC -> inherited RC -> explicit RC."""
44784478

44794479
@runtime_checkable
44804480
class RCProto3(BareProto, Protocol):
4481-
"""Bare -> explicit RC."""
4481+
"""Not RC -> explicit RC."""
44824482

44834483
class InheritedRCProto2(RCProto3, Protocol):
4484-
"""Bare -> explicit RC -> inherited RC."""
4484+
"""Not RC -> explicit RC -> inherited RC."""
44854485

44864486
class InheritedRCProto3(RCProto2, Protocol):
44874487
"""Explicit RC -> inherited RC -> explicit RC -> inherited RC."""

0 commit comments

Comments
 (0)