From ee11c813221ea0b4915a84c9e46825fa983de34c Mon Sep 17 00:00:00 2001 From: Alex Waygood Date: Tue, 15 Mar 2022 09:49:13 +0000 Subject: [PATCH] Correct example in `runtime_troubles.rst` `SupportsLessThan` was removed from `_typeshed` in https://github.com/python/typeshed/pull/6583 and replaced with a new `SupportsRichComparison` type, which better reflects the types at runtime. Fixes #12355 --- docs/source/runtime_troubles.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/runtime_troubles.rst b/docs/source/runtime_troubles.rst index e748fb000b71..1bab66194e47 100644 --- a/docs/source/runtime_troubles.rst +++ b/docs/source/runtime_troubles.rst @@ -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: