Skip to content

Commit 5be278f

Browse files
committed
Move RCProto3 below RCProto2
1 parent a583cce commit 5be278f

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Lib/test/test_typing.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4469,17 +4469,17 @@ class BareProto(Protocol):
44694469
class RCProto1(Protocol):
44704470
"""I am runtime-checkable."""
44714471

4472-
@runtime_checkable
4473-
class RCProto3(BareProto, Protocol):
4474-
"""Bare -> explicit RC."""
4475-
44764472
class InheritedRCProto1(RCProto1, Protocol):
44774473
"""Bare, but runtime-checkability is "inherited"."""
44784474

44794475
@runtime_checkable
44804476
class RCProto2(InheritedRCProto1, Protocol):
44814477
"""Explicit RC -> inherited RC -> explicit RC."""
44824478

4479+
@runtime_checkable
4480+
class RCProto3(BareProto, Protocol):
4481+
"""Bare -> explicit RC."""
4482+
44834483
class InheritedRCProto2(RCProto3, Protocol):
44844484
"""Bare -> explicit RC -> inherited RC."""
44854485

0 commit comments

Comments
 (0)