mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-16 15:04:13 +00:00
docs: docstrings langchain_community
update (#14889)
Addded missed docstrings. Fixed inconsistency in docstrings. **Note** CC @efriis There were PR errors on `langchain_experimental/prompt_injection_identifier/hugging_face_identifier.py` But, I didn't touch this file in this PR! Can it be some cache problems? I fixed this error.
This commit is contained in:
@@ -137,6 +137,15 @@ class BeautifulSoupTransformer(BaseDocumentTransformer):
|
||||
|
||||
|
||||
def get_navigable_strings(element: Any) -> Iterator[str]:
|
||||
"""Get all navigable strings from a BeautifulSoup element.
|
||||
|
||||
Args:
|
||||
element: A BeautifulSoup element.
|
||||
|
||||
Returns:
|
||||
A generator of strings.
|
||||
"""
|
||||
|
||||
from bs4 import NavigableString, Tag
|
||||
|
||||
for child in cast(Tag, element).children:
|
||||
|
Reference in New Issue
Block a user