Skip to content

Commit

Permalink
one more review tweak on protocol wording
Browse files Browse the repository at this point in the history
  • Loading branch information
carljm committed Jun 2, 2024
1 parent 3d6b406 commit 5d40036
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/spec/protocol.rst
Original file line number Diff line number Diff line change
Expand Up @@ -179,10 +179,10 @@ Examples::
represent(nice) # OK
represent(another) # Also OK

Note that there is little difference between explicit and implicit consistent
subtypes; the main benefit of explicit subclassing is to get some protocol
methods "for free". In addition, type checkers can statically verify that the
class actually implements the protocol correctly::
Note that there is little difference between explicitly subclassing and
implicitly implementing the protocol; the main benefit of explicit subclassing
is to get some protocol methods "for free". In addition, type checkers can
statically verify that the class actually implements the protocol correctly::

class RGB(Protocol):
rgb: tuple[int, int, int]
Expand Down

0 comments on commit 5d40036

Please sign in to comment.