From ea89016394f14febe529f194f823ede06ea70c59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Onat=20=C3=96zmen?= Date: Sun, 30 Aug 2026 16:21:34 +0300 Subject: [PATCH] fix(anthropic): import NotRequired from typing_extensions --- .../context_management/editors/compact.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/litellm/llms/anthropic/experimental_pass_through/context_management/editors/compact.py b/litellm/llms/anthropic/experimental_pass_through/context_management/editors/compact.py index c8cbbba8784..cda01192da4 100644 --- a/litellm/llms/anthropic/experimental_pass_through/context_management/editors/compact.py +++ b/litellm/llms/anthropic/experimental_pass_through/context_management/editors/compact.py @@ -14,9 +14,9 @@ Mirrors Anthropic's native ``compact_20260112`` for non-Anthropic providers: import re from collections.abc import Mapping, Sequence -from typing import TYPE_CHECKING, Any, Final, Literal, NotRequired, Optional, TypedDict, Union, cast +from typing import TYPE_CHECKING, Any, Final, Literal, Optional, TypedDict, Union, cast -from typing_extensions import ReadOnly +from typing_extensions import NotRequired, ReadOnly import litellm from litellm._logging import verbose_logger