ref: standardize imports to use full qualified names (#7575)

* Remove models from __init__.py to avoid circular dependency

* [autofix.ci] apply automated fixes

* [autofix.ci] apply automated fixes (attempt 2/3)

* add back init to avoid backwards-compat issues

* [autofix.ci] apply automated fixes

* ref: standardize imports to use full qualified names

Replaces uses of the "public" APIs to use full qualified
names to reduce instances of circular dependencies

* [autofix.ci] apply automated fixes

* [autofix.ci] apply automated fixes (attempt 2/3)

* Fix path

* update starters"
"

* remove old files'

* [autofix.ci] apply automated fixes

* Fix some imports

* [autofix.ci] apply automated fixes

* ruff

* [autofix.ci] apply automated fixes

* starter projects?

* starter projects?

* [autofix.ci] apply automated fixes

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
Jordan Frazier 2025-06-09 08:20:34 -07:00 committed by GitHub
commit f2e3f2ccc5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
332 changed files with 863 additions and 803 deletions

View file

@ -6,7 +6,7 @@ from langflow.components.input_output.chat_output import ChatOutput
from langflow.components.langchain_utilities import ToolCallingAgentComponent
from langflow.components.languagemodels import OpenAIModelComponent
from langflow.components.tools.calculator import CalculatorToolComponent
from langflow.graph import Graph
from langflow.graph.graph.base import Graph
from langflow.schema.data import Data
from pydantic import BaseModel

View file

@ -2,7 +2,7 @@ from unittest.mock import MagicMock
import pytest
from langflow.components.languagemodels import DeepSeekModelComponent
from langflow.custom import Component
from langflow.custom.custom_component.component import Component
from langflow.custom.utils import build_custom_component_template

View file

@ -2,9 +2,9 @@ from unittest.mock import MagicMock, patch
import pytest
from langflow.components.languagemodels import XAIModelComponent
from langflow.custom import Component
from langflow.custom.custom_component.component import Component
from langflow.custom.utils import build_custom_component_template
from langflow.inputs import (
from langflow.inputs.inputs import (
BoolInput,
DictInput,
DropdownInput,

View file

@ -3,7 +3,7 @@ from unittest.mock import MagicMock, patch
import pytest
from langflow.base.models.anthropic_constants import ANTHROPIC_MODELS
from langflow.base.models.openai_constants import OPENAI_MODEL_NAMES
from langflow.components.models import LanguageModelComponent
from langflow.components.models.language_model import LanguageModelComponent
from tests.base import ComponentTestBaseWithClient

View file

@ -4,7 +4,7 @@ import pytest
from langflow.components.input_output import ChatInput, ChatOutput
from langflow.components.languagemodels import OpenAIModelComponent
from langflow.components.prompts import PromptComponent
from langflow.graph import Graph
from langflow.graph.graph.base import Graph
def test_edge_raises_error_on_invalid_target_handle():

View file

@ -6,8 +6,8 @@ from langflow.components.input_output.text import TextInputComponent
from langflow.components.languagemodels import OpenAIModelComponent
from langflow.components.logic.conditional_router import ConditionalRouterComponent
from langflow.components.prompts import PromptComponent
from langflow.custom import Component
from langflow.graph import Graph
from langflow.custom.custom_component.component import Component
from langflow.graph.graph.base import Graph
from langflow.graph.graph.utils import find_cycle_vertices
from langflow.io import MessageTextInput, Output
from langflow.schema.message import Message

View file

@ -6,7 +6,7 @@ from langflow.components.input_output import ChatInput, ChatOutput
from langflow.components.languagemodels import OpenAIModelComponent
from langflow.components.processing.converter import TypeConverterComponent
from langflow.components.prompts import PromptComponent
from langflow.graph import Graph
from langflow.graph.graph.base import Graph
from langflow.graph.graph.constants import Finish
from langflow.graph.graph.state_model import create_state_model_from_graph

View file

@ -8,7 +8,7 @@ from langflow.components.input_output import ChatInput, ChatOutput
from langflow.components.languagemodels import OpenAIModelComponent
from langflow.components.processing.converter import TypeConverterComponent
from langflow.components.prompts import PromptComponent
from langflow.graph import Graph
from langflow.graph.graph.base import Graph
from langflow.graph.graph.constants import Finish
if TYPE_CHECKING:

View file

@ -11,7 +11,7 @@ from langflow.components.processing import ParseDataComponent
from langflow.components.processing.split_text import SplitTextComponent
from langflow.components.prompts import PromptComponent
from langflow.components.vectorstores import AstraDBVectorStoreComponent
from langflow.graph import Graph
from langflow.graph.graph.base import Graph
from langflow.graph.graph.constants import Finish
from langflow.schema import Data
from langflow.schema.dataframe import DataFrame