core[minor]: Add aload to document loader (#19936)

Add aload to document loader
This commit is contained in:
Eugene Yurtsev
2024-04-03 10:46:47 -04:00
committed by GitHub
parent 31a641a155
commit d293431e10
3 changed files with 6 additions and 1 deletions

View File

@@ -251,7 +251,7 @@ class WebBaseLoader(BaseLoader):
metadata = _build_metadata(soup, path)
yield Document(page_content=text, metadata=metadata)
def aload(self) -> List[Document]:
def aload(self) -> List[Document]: # type: ignore
"""Load text from the urls in web_path async into Documents."""
results = self.scrape_all(self.web_paths)