-
Notifications
You must be signed in to change notification settings - Fork 15.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
core[patch]: remove redundant imports #28861
Conversation
remove useless statements
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Skipped Deployment
|
@@ -279,7 +279,7 @@ def _create_subset_model_v2( | |||
fn_description: Optional[str] = None, | |||
) -> type[pydantic.BaseModel]: | |||
"""Create a pydantic model with a subset of the model fields.""" | |||
from pydantic import ConfigDict, create_model |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same issue. ConfigDict is imported at Line: 24
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -534,8 +534,6 @@ def get_config_jsonschema( | |||
|
|||
def get_graph(self, config: Optional[RunnableConfig] = None) -> Graph: | |||
"""Return a graph representation of this Runnable.""" | |||
from langchain_core.runnables.graph import Graph |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like the module-level import was originally just for type checking; that was later changed but this import was not removed 7d5800e
@@ -279,7 +279,7 @@ def _create_subset_model_v2( | |||
fn_description: Optional[str] = None, | |||
) -> type[pydantic.BaseModel]: | |||
"""Create a pydantic model with a subset of the model fields.""" | |||
from pydantic import ConfigDict, create_model |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Graph
has been imported at Line: 62