Skip to content

Commit b2e1196

Browse files
authored
chore(core,infra): nits (#33954)
1 parent 2dc1396 commit b2e1196

File tree

3 files changed

+18
-12
lines changed

3 files changed

+18
-12
lines changed

.github/ISSUE_TEMPLATE/bug-report.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ body:
4444
description: |
4545
Which `langchain` package(s) is this bug related to? Select at least one.
4646
47-
Note that if the package you are reporting for is not listed here, it is not in this repository (e.g. `langchain-google-genai` is in `langchain-ai/langchain`).
47+
Note that if the package you are reporting for is not listed here, it is not in this repository (e.g. `langchain-google-genai` is in [`langchain-ai/langchain-google`](https://github.com/langchain-ai/langchain-google/)).
4848
4949
Please report issues for other packages to their respective repositories.
5050
options:

libs/core/langchain_core/load/load.py

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,15 @@ def __init__(
6161
"""Initialize the reviver.
6262
6363
Args:
64-
secrets_map: A map of secrets to load. If a secret is not found in
65-
the map, it will be loaded from the environment if `secrets_from_env`
66-
is True.
64+
secrets_map: A map of secrets to load.
65+
66+
If a secret is not found in the map, it will be loaded from the
67+
environment if `secrets_from_env` is `True`.
6768
valid_namespaces: A list of additional namespaces (modules)
6869
to allow to be deserialized.
6970
secrets_from_env: Whether to load secrets from the environment.
7071
additional_import_mappings: A dictionary of additional namespace mappings
72+
7173
You can use this to override default mappings or add new mappings.
7274
ignore_unserializable_fields: Whether to ignore unserializable fields.
7375
"""
@@ -195,13 +197,15 @@ def loads(
195197
196198
Args:
197199
text: The string to load.
198-
secrets_map: A map of secrets to load. If a secret is not found in
199-
the map, it will be loaded from the environment if `secrets_from_env`
200-
is True.
200+
secrets_map: A map of secrets to load.
201+
202+
If a secret is not found in the map, it will be loaded from the environment
203+
if `secrets_from_env` is `True`.
201204
valid_namespaces: A list of additional namespaces (modules)
202205
to allow to be deserialized.
203206
secrets_from_env: Whether to load secrets from the environment.
204207
additional_import_mappings: A dictionary of additional namespace mappings
208+
205209
You can use this to override default mappings or add new mappings.
206210
ignore_unserializable_fields: Whether to ignore unserializable fields.
207211
@@ -237,13 +241,15 @@ def load(
237241
238242
Args:
239243
obj: The object to load.
240-
secrets_map: A map of secrets to load. If a secret is not found in
241-
the map, it will be loaded from the environment if `secrets_from_env`
242-
is True.
244+
secrets_map: A map of secrets to load.
245+
246+
If a secret is not found in the map, it will be loaded from the environment
247+
if `secrets_from_env` is `True`.
243248
valid_namespaces: A list of additional namespaces (modules)
244249
to allow to be deserialized.
245250
secrets_from_env: Whether to load secrets from the environment.
246251
additional_import_mappings: A dictionary of additional namespace mappings
252+
247253
You can use this to override default mappings or add new mappings.
248254
ignore_unserializable_fields: Whether to ignore unserializable fields.
249255

libs/core/uv.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)