Skip to content

Commit

Permalink
Use data role and forgotten "the"
Browse files Browse the repository at this point in the history
  • Loading branch information
Gouvernathor authored Mar 1, 2024
1 parent e9f1104 commit 6055434
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Doc/reference/datamodel.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1812,13 +1812,13 @@ Basic customization
rather, :meth:`__lt__` and :meth:`__gt__` are each other's reflection,
:meth:`__le__` and :meth:`__ge__` are each other's reflection, and
:meth:`__eq__` and :meth:`__ne__` are their own reflection.
If the operands are of different types, and right operand's type is
If the operands are of different types, and the right operand's type is
a direct or indirect subclass of the left operand's type,
the reflected method of the right operand has priority, otherwise
the left operand's method has priority. Virtual subclassing is
not considered.

When no appropriate method returns any value other than ``NotImplemented``, the
When no appropriate method returns any value other than :data:`!NotImplemented`, the
``==`` and ``!=`` operators will fall back to ``is`` and ``is not``, respectively.

.. method:: object.__hash__(self)
Expand Down

0 comments on commit 6055434

Please sign in to comment.