mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-20 22:03:52 +00:00
Community[patch]: Adjusted import to be compatible with SQLAlchemy<2 (#17520)
- **Description:** Adjusts an import to directly import `Result` from `sqlalchemy.engine`. - **Issue:** #17519 - **Dependencies:** N/A - **Twitter handle:** @grafail
This commit is contained in:
parent
6746adf363
commit
a84a3add25
@ -2,7 +2,7 @@
|
|||||||
"""Tools for interacting with a SQL database."""
|
"""Tools for interacting with a SQL database."""
|
||||||
from typing import Any, Dict, Optional, Sequence, Type, Union
|
from typing import Any, Dict, Optional, Sequence, Type, Union
|
||||||
|
|
||||||
from sqlalchemy import Result
|
from sqlalchemy.engine import Result
|
||||||
|
|
||||||
from langchain_core.pydantic_v1 import BaseModel, Field, root_validator
|
from langchain_core.pydantic_v1 import BaseModel, Field, root_validator
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user