mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-08-28 10:49:56 +02:00
chore(prebuilt): fix ruff lint in tool_node.py
Remove unused `functools` import; drop redundant string annotation on `_INJECTED_ARGS_CACHE` (already covered by `from __future__ import annotations`). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
aa992adf57
commit
433b51072b
@@ -40,7 +40,6 @@ Typical Usage:
|
||||
from __future__ import annotations
|
||||
|
||||
import asyncio
|
||||
import functools
|
||||
import inspect
|
||||
import json
|
||||
from collections.abc import Awaitable, Callable
|
||||
@@ -1845,7 +1844,7 @@ def _get_injection_from_type(
|
||||
|
||||
# Cache keyed by tool object identity. Stores (tool, result) to keep a strong
|
||||
# reference that prevents GC from reusing the id for a different object.
|
||||
_INJECTED_ARGS_CACHE: dict[int, tuple[BaseTool, "_InjectedArgs"]] = {}
|
||||
_INJECTED_ARGS_CACHE: dict[int, tuple[BaseTool, _InjectedArgs]] = {}
|
||||
|
||||
|
||||
def _get_all_injected_args(tool: BaseTool) -> _InjectedArgs:
|
||||
|
||||
Reference in New Issue
Block a user