Skip to content

Commit 484381c

Browse files
committed
Add some methods to protocols
1 parent cef6504 commit 484381c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Lib/test/test_typing.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4475,13 +4475,15 @@ class InheritedRCProto1(RCProto1, Protocol):
44754475
@runtime_checkable
44764476
class RCProto2(InheritedRCProto1, Protocol):
44774477
"""Explicit RC -> inherited RC -> explicit RC."""
4478+
def spam(self): ...
44784479

44794480
@runtime_checkable
44804481
class RCProto3(BareProto, Protocol):
44814482
"""Not RC -> explicit RC."""
44824483

44834484
class InheritedRCProto2(RCProto3, Protocol):
44844485
"""Not RC -> explicit RC -> inherited RC."""
4486+
def eggs(self): ...
44854487

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

0 commit comments

Comments
 (0)