fix(langgraph): don't use rst code blocks in docstrings (#6231)

This commit is contained in:
Mason Daugherty
2025-10-01 00:08:07 +00:00
committed by GitHub
parent efb0e8c176
commit 04fb14d3ae
2 changed files with 9 additions and 12 deletions
+3 -3
View File
@@ -277,9 +277,9 @@ def my_function(arg1: int, arg2: str) -> float:
Examples:
This is a section for examples of how to use the function.
.. code-block:: python
my_function(1, "hello")
```python
my_function(1, "hello")
\```
Args:
arg1: This is a description of arg1. We do not need to specify the type since
+6 -9
View File
@@ -89,13 +89,12 @@ def push_ui_message(
The created UI message.
Example:
.. code-block:: python
```python
push_ui_message(
name="component-name",
props={"content": "Hello world"},
)
```
"""
from langgraph._internal._constants import CONFIG_KEY_SEND
@@ -146,10 +145,9 @@ def delete_ui_message(id: str, *, state_key: str = "ui") -> RemoveUIMessage:
The remove UI message.
Example:
.. code-block:: python
```python
delete_ui_message("message-123")
```
"""
from langgraph._internal._constants import CONFIG_KEY_SEND
@@ -183,13 +181,12 @@ def ui_message_reducer(
Combined list of UI messages with removals applied.
Example:
.. code-block:: python
```python
messages = ui_message_reducer(
[{"type": "ui", "id": "1", "name": "Chat", "props": {}}],
{"type": "remove-ui", "id": "1"},
)
```
"""
if not isinstance(left, list):