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:
Christophe Bornet
2025-09-10 17:14:14 +02:00
committed by GitHub
parent 181bb91ce0
commit 12921a94c5
3 changed files with 16 additions and 19 deletions

View File

@@ -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__", ())

View File

@@ -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)