From bc5d216480d43d479099a5dcbf666c11790d84a8 Mon Sep 17 00:00:00 2001 From: Kartikey Rai Date: Tue, 16 Jun 2026 00:30:35 +0530 Subject: [PATCH] docs: fix unsupported-operation example (reports not-iterable instead) --- website/docs/error-kinds.mdx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/website/docs/error-kinds.mdx b/website/docs/error-kinds.mdx index 27faf58844..5d07d725e8 100644 --- a/website/docs/error-kinds.mdx +++ b/website/docs/error-kinds.mdx @@ -1778,8 +1778,7 @@ For example, read-only and required `TypedDict` fields cannot be deleted. This error arises when attempting to perform an operation between values of two incompatible types. ```python -if "hello" in 1: # int doesn't support `in`! - ... +x = 1 + "oops" # `+` is not supported between `int` and `str` [unsupported-operation] ``` ## untyped-import