mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-03 03:59:42 +00:00
core[patch]: Add missing type annotations (#22756)
Add missing type annotations. The missing type annotations will raise exceptions with pydantic 2.
This commit is contained in:
@@ -744,8 +744,8 @@ def test_validation_error_handling_non_validation_error(
|
||||
"""Test that validation errors are handled correctly."""
|
||||
|
||||
class _RaiseNonValidationErrorTool(BaseTool):
|
||||
name = "raise_non_validation_error_tool"
|
||||
description = "A tool that raises a non-validation error"
|
||||
name: str = "raise_non_validation_error_tool"
|
||||
description: str = "A tool that raises a non-validation error"
|
||||
|
||||
def _parse_input(
|
||||
self,
|
||||
@@ -806,8 +806,8 @@ async def test_async_validation_error_handling_non_validation_error(
|
||||
"""Test that validation errors are handled correctly."""
|
||||
|
||||
class _RaiseNonValidationErrorTool(BaseTool):
|
||||
name = "raise_non_validation_error_tool"
|
||||
description = "A tool that raises a non-validation error"
|
||||
name: str = "raise_non_validation_error_tool"
|
||||
description: str = "A tool that raises a non-validation error"
|
||||
|
||||
def _parse_input(
|
||||
self,
|
||||
|
Reference in New Issue
Block a user