mirror of
https://github.com/hwchase17/langchain.git
synced 2026-05-14 19:05:21 +00:00
fix(core): add quotes to cast to satisfy ruff TC006
This commit is contained in:
@@ -318,7 +318,7 @@ def create_schema_from_function(
|
||||
**field_definitions,
|
||||
)
|
||||
model.__doc__ = textwrap.dedent(description or func.__doc__ or "")
|
||||
return cast(type[BaseModel], model)
|
||||
return cast("type[BaseModel]", model)
|
||||
|
||||
|
||||
class ToolException(Exception): # noqa: N818
|
||||
|
||||
Reference in New Issue
Block a user