From 6a2a149f893340e6a6c0defacb5812fef3b61c41 Mon Sep 17 00:00:00 2001 From: Sydney Runkle <54324534+sydney-runkle@users.noreply.github.com> Date: Fri, 12 Dec 2025 08:47:51 -0500 Subject: [PATCH] fix: little lint thing (#34310) to be merged into https://github.com/langchain-ai/langchain/pull/32810 --- libs/langchain_v1/langchain/agents/middleware/summarization.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/langchain_v1/langchain/agents/middleware/summarization.py b/libs/langchain_v1/langchain/agents/middleware/summarization.py index fd99ef16def..c25f1b2334b 100644 --- a/libs/langchain_v1/langchain/agents/middleware/summarization.py +++ b/libs/langchain_v1/langchain/agents/middleware/summarization.py @@ -120,7 +120,7 @@ Example: def _get_approximate_token_counter(model: BaseChatModel) -> TokenCounter: """Tune parameters of approximate token counter based on model type.""" - if model._llm_type == "anthropic-chat": + if model._llm_type == "anthropic-chat": # noqa: SLF001 # 3.3 was estimated in an offline experiment, comparing with Claude's token-counting # API: https://platform.claude.com/docs/en/build-with-claude/token-counting return partial(count_tokens_approximately, chars_per_token=3.3)