mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-03 20:16:52 +00:00
cli[patch]: ruff 0.5 (#23833)
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
"""
|
||||
Develop integration packages for LangChain.
|
||||
"""
|
||||
|
||||
import re
|
||||
import shutil
|
||||
import subprocess
|
||||
@@ -154,7 +155,8 @@ def create_doc(
|
||||
str,
|
||||
typer.Option(
|
||||
help=(
|
||||
"The type of component. Currently only 'ChatModel', 'DocumentLoader' supported."
|
||||
"The type of component. Currently only 'ChatModel', 'DocumentLoader' "
|
||||
"supported."
|
||||
),
|
||||
),
|
||||
] = "ChatModel",
|
||||
|
@@ -10,6 +10,7 @@ This codemod deals with the following cases:
|
||||
4. `from pydantic.settings import BaseSettings as <name>` # TODO: This is not working.
|
||||
5. `import pydantic` -> `pydantic.BaseSettings`
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import json
|
||||
|
@@ -1,4 +1,5 @@
|
||||
"""Generate migrations from langchain to langchain-community or core packages."""
|
||||
|
||||
import importlib
|
||||
import inspect
|
||||
import pkgutil
|
||||
|
@@ -1,4 +1,5 @@
|
||||
"""Generate migrations for partner packages."""
|
||||
|
||||
import importlib
|
||||
from typing import List, Tuple
|
||||
|
||||
|
@@ -1,4 +1,5 @@
|
||||
"""Migrate LangChain to the most recent version."""
|
||||
|
||||
# Adapted from bump-pydantic
|
||||
# https://github.com/pydantic/bump-pydantic
|
||||
import difflib
|
||||
|
Reference in New Issue
Block a user