DOC: Typo in libs/langgraph/langgraph/graph/state.py on line 158 #964

Closed
opened 2026-02-20 17:42:33 -05:00 by yindo · 1 comment
Owner

Originally created by @AldenWangExis on GitHub (Sep 7, 2025).

Issue with current documentation:

Description

There is a typo in the libs/langgraph/langgraph/graph/state.py file on line 158. The code currently reads r = runtie.context.get("r", 1.0) but it should be r = runtime.context.get("r", 1.0).

def node(state: State, runtime: Runtime[Context]) -> dict:
    r = runtie.context.get("r", 1.0)
    x = state["x"][-1]
    next_value = x * r * (1 - x)
    return {"x": next_value}

Steps to Reproduce

  1. Navigate to the libs/langgraph/langgraph/graph/state.py file in the repository.
  2. Locate line 158.
  3. Observe the typo runtie instead of runtime.

Proposed Solution

Change runtie to runtime on line 158 to correct the typo.

Additional Context

I have identified this issue while reviewing the code. If required, I can submit a Pull Request with the fix.

Idea or request for content:

No response

Originally created by @AldenWangExis on GitHub (Sep 7, 2025). ### Issue with current documentation: ### Description There is a typo in the `libs/langgraph/langgraph/graph/state.py` file on line 158. The code currently reads `r = runtie.context.get("r", 1.0)` but it should be `r = runtime.context.get("r", 1.0)`. ```python def node(state: State, runtime: Runtime[Context]) -> dict: r = runtie.context.get("r", 1.0) x = state["x"][-1] next_value = x * r * (1 - x) return {"x": next_value} ``` ### Steps to Reproduce 1. Navigate to the `libs/langgraph/langgraph/graph/state.py` file in the repository. 2. Locate line 158. 3. Observe the typo `runtie` instead of `runtime`. ### Proposed Solution Change `runtie` to `runtime` on line 158 to correct the typo. ### Additional Context I have identified this issue while reviewing the code. If required, I can submit a Pull Request with the fix. ### Idea or request for content: _No response_
yindo added the documentation label 2026-02-20 17:42:33 -05:00
yindo closed this issue 2026-02-20 17:42:33 -05:00
Author
Owner

@sydney-runkle commented on GitHub (Sep 9, 2025):

Fixed on main

@sydney-runkle commented on GitHub (Sep 9, 2025): Fixed on main
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langgraph#964