Skip to content

Commit

Permalink
Correct example in runtime_troubles.rst (#12356)
Browse files Browse the repository at this point in the history
`SupportsLessThan` was removed from `_typeshed` in 
python/typeshed#6583 and replaced with 
a new `SupportsRichComparison` type, which better reflects the 
types at runtime.

Fixes #12355
  • Loading branch information
AlexWaygood authored Mar 15, 2022
1 parent 9135795 commit b09683c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/source/runtime_troubles.rst
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ sections, these can be dealt with by using :ref:`typing.TYPE_CHECKING
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from _typeshed import SupportsLessThan
from _typeshed import SupportsRichComparison
.. _generic-builtins:

Expand Down

0 comments on commit b09683c

Please sign in to comment.