mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-05 13:06:03 +00:00
community[patch]: Add linter to catch @root_validator (#24070)
- Add linter to prevent further usage of vanilla root validator - Udpate remaining root validators
This commit is contained in:
@@ -35,7 +35,7 @@ class ExtractHyperlinksTool(BaseBrowserTool):
|
||||
description: str = "Extract all hyperlinks on the current webpage"
|
||||
args_schema: Type[BaseModel] = ExtractHyperlinksToolInput
|
||||
|
||||
@root_validator
|
||||
@root_validator(pre=True)
|
||||
def check_bs_import(cls, values: dict) -> dict:
|
||||
"""Check that the arguments are valid."""
|
||||
try:
|
||||
|
Reference in New Issue
Block a user