mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-24 12:01:54 +00:00
test(core): reactivate commented tests in test_indexing
(#32882)
* These tests now pass * Commenting them is a [ruff ERA](https://docs.astral.sh/ruff/rules/commented-out-code/) violation
This commit is contained in:
committed by
GitHub
parent
181bb91ce0
commit
12921a94c5
@@ -1362,8 +1362,8 @@ def get_all_basemodel_annotations(
|
||||
continue
|
||||
|
||||
# if class = FooBar inherits from Baz[str]:
|
||||
# parent = Baz[str],
|
||||
# parent_origin = Baz,
|
||||
# parent = class Baz[str],
|
||||
# parent_origin = class Baz,
|
||||
# generic_type_vars = (type vars in Baz)
|
||||
# generic_map = {type var in Baz: str}
|
||||
generic_type_vars: tuple = getattr(parent_origin, "__parameters__", ())
|
||||
|
@@ -315,7 +315,7 @@ def tool(
|
||||
|
||||
if runnable is not None:
|
||||
# tool is used as a function
|
||||
# tool_from_runnable = tool("name", runnable)
|
||||
# for instance tool_from_runnable = tool("name", runnable)
|
||||
if not name_or_callable:
|
||||
msg = "Runnable without name for tool constructor"
|
||||
raise ValueError(msg)
|
||||
|
Reference in New Issue
Block a user