Skip to content

Commit

Permalink
Fix duplicate word in protocols.rst (#16950)
Browse files Browse the repository at this point in the history
  • Loading branch information
hesam-ghamary authored Feb 26, 2024
1 parent 2037e4a commit a91151c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/source/protocols.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ compatible as types: nominal subtyping and structural subtyping.
*Nominal* subtyping is strictly based on the class hierarchy. If class ``Dog``
inherits class ``Animal``, it's a subtype of ``Animal``. Instances of ``Dog``
can be used when ``Animal`` instances are expected. This form of subtyping
subtyping is what Python's type system predominantly uses: it's easy to
is what Python's type system predominantly uses: it's easy to
understand and produces clear and concise error messages, and matches how the
native :py:func:`isinstance <isinstance>` check works -- based on class
hierarchy.
Expand Down

0 comments on commit a91151c

Please sign in to comment.