Skip to content

The agent engineering platform.

cli[patch]: Fix Tuple typing problem when create new langchain app (#19141)

Mauricio Cruzfb9ce95184c6
diff --git a/libs/cli/langchain_cli/utils/pyproject.py b/libs/cli/langchain_cli/utils/pyproject.py
index 6bf85417e7..07ce465e2c 100644
--- a/libs/cli/langchain_cli/utils/pyproject.py
+++ b/libs/cli/langchain_cli/utils/pyproject.py
@@ -1,5 +1,5 @@
from pathlib import Path
-from typing import Any, Dict, Iterable
+from typing import Any, Dict, Iterable, Tuple
from tomlkit import dump, inline_table, load
from tomlkit.items import InlineTable
@@ -12,7 +12,7 @@ def _get_dep_inline_table(path: Path) -> InlineTable:
def add_dependencies_to_pyproject_toml(
- pyproject_toml: Path, local_editable_dependencies: Iterable[tuple[str, Path]]
+ pyproject_toml: Path, local_editable_dependencies: Iterable[Tuple[str, Path]]
) -> None:
"""Add dependencies to pyproject.toml."""
with open(pyproject_toml, encoding="utf-8") as f: