Skip to content

The agent engineering platform.

chore(core): clean up docstring mismatch and redundant logic in langchain-core (#35064)

Varun Chawlaa5f22e7cb18a
diff --git a/libs/core/langchain_core/documents/base.py b/libs/core/langchain_core/documents/base.py
index 1dc9661c06..969ee49a17 100644
--- a/libs/core/langchain_core/documents/base.py
+++ b/libs/core/langchain_core/documents/base.py
@@ -234,7 +234,7 @@ class Blob(BaseMedia):
`Blob` instance
"""
if mime_type is None and guess_type:
- mimetype = mimetypes.guess_type(path)[0] if guess_type else None
+ mimetype = mimetypes.guess_type(path)[0]
else:
mimetype = mime_type
# We do not load the data immediately, instead we treat the blob as a
diff --git a/libs/core/langchain_core/utils/mustache.py b/libs/core/langchain_core/utils/mustache.py
index 54674c262f..e8282b0f38 100644
--- a/libs/core/langchain_core/utils/mustache.py
+++ b/libs/core/langchain_core/utils/mustache.py
@@ -481,14 +481,6 @@ def render(
Args:
template: A file-like object or a string containing the template.
data: A python dictionary with your data scope.
- partials_path: The path to where your partials are stored.
-
- If set to None, then partials won't be loaded from the file system
-
- Defaults to `'.'`.
- partials_ext: The extension that you want the parser to look for
-
- Defaults to `'mustache'`.
partials_dict: A python dictionary which will be search for partials
before the filesystem is.