Skip to content

Commit b09683c

Browse files
authored
Correct example in runtime_troubles.rst (#12356)
`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
1 parent 9135795 commit b09683c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/source/runtime_troubles.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ sections, these can be dealt with by using :ref:`typing.TYPE_CHECKING
254254
255255
from typing import TYPE_CHECKING
256256
if TYPE_CHECKING:
257-
from _typeshed import SupportsLessThan
257+
from _typeshed import SupportsRichComparison
258258
259259
.. _generic-builtins:
260260

0 commit comments

Comments
 (0)