From fea639c1fc1ac324f1300016a02b6d30a2f8d249 Mon Sep 17 00:00:00 2001 From: Zander Chase <130414180+vowelparrot@users.noreply.github.com> Date: Thu, 4 May 2023 20:46:38 -0700 Subject: [PATCH] Vwp/sqlalchemy (#4145) Bump threshold to 1.4 from 1.3. Change import to be compatible Resolves #4142 and #4129 --------- Co-authored-by: ndaugreal Co-authored-by: Jeremy Lopez --- langchain/sql_database.py | 3 +-- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/langchain/sql_database.py b/langchain/sql_database.py index a91c8c1a..fc0a5098 100644 --- a/langchain/sql_database.py +++ b/langchain/sql_database.py @@ -6,7 +6,6 @@ from typing import Any, Iterable, List, Optional import sqlalchemy from sqlalchemy import ( - CursorResult, MetaData, Table, create_engine, @@ -14,7 +13,7 @@ from sqlalchemy import ( select, text, ) -from sqlalchemy.engine import Engine +from sqlalchemy.engine import CursorResult, Engine from sqlalchemy.exc import ProgrammingError, SQLAlchemyError from sqlalchemy.schema import CreateTable diff --git a/pyproject.toml b/pyproject.toml index f6a5745f..f66b83c4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -13,7 +13,7 @@ langchain-server = "langchain.server:main" [tool.poetry.dependencies] python = ">=3.8.1,<4.0" pydantic = "^1" -SQLAlchemy = ">=1.3,<3" +SQLAlchemy = ">=1.4,<3" requests = "^2" PyYAML = ">=5.4.1" numpy = "^1"