TypeError: 'type' object is not subscriptable when run Pytest #675

Closed
opened 2026-02-20 17:41:17 -05:00 by yindo · 3 comments
Owner

Originally created by @hypntzed78 on GitHub (Jun 8, 2025).

Checked other resources

  • This is a bug, not a usage question. For questions, please use GitHub Discussions.
  • I added a clear and detailed title that summarizes the issue.
  • I read what a minimal reproducible example is (https://stackoverflow.com/help/minimal-reproducible-example).
  • I included a self-contained, minimal example that demonstrates the issue INCLUDING all the relevant imports. The code run AS IS to reproduce the issue.

Example Code

run pytest for https://github.com/langchain-ai/new-langgraph-project

Error Message and Stack Trace (if applicable)

..\anaconda3\lib\site-packages\langgraph\checkpoint\base.py:15: in <module>
    class Checkpoint(TypedDict):
..\anaconda3\lib\site-packages\langgraph\checkpoint\base.py:18: in Checkpoint
    channel_values: dict[str, Any]
E   TypeError: 'type' object is not subscriptable
======================= short test summary info =======================
ERROR test_langgraph.py
ERROR tests/integration_tests/test_graph.py
ERROR tests/unit_tests/test_configuration.py - TypeError: 'type' object is not subscriptable
!!!!!!!!!!!!!!! Interrupted: 3 errors during collection !!!!!!!!!!!!!!!
========================== 3 errors in 1.76s ==========================

Description

run pytest for https://github.com/langchain-ai/new-langgraph-project

System Info

pytest

Originally created by @hypntzed78 on GitHub (Jun 8, 2025). ### Checked other resources - [x] This is a bug, not a usage question. For questions, please use GitHub Discussions. - [x] I added a clear and detailed title that summarizes the issue. - [x] I read what a minimal reproducible example is (https://stackoverflow.com/help/minimal-reproducible-example). - [x] I included a self-contained, minimal example that demonstrates the issue INCLUDING all the relevant imports. The code run AS IS to reproduce the issue. ### Example Code ```python run pytest for https://github.com/langchain-ai/new-langgraph-project ``` ### Error Message and Stack Trace (if applicable) ```shell ..\anaconda3\lib\site-packages\langgraph\checkpoint\base.py:15: in <module> class Checkpoint(TypedDict): ..\anaconda3\lib\site-packages\langgraph\checkpoint\base.py:18: in Checkpoint channel_values: dict[str, Any] E TypeError: 'type' object is not subscriptable ======================= short test summary info ======================= ERROR test_langgraph.py ERROR tests/integration_tests/test_graph.py ERROR tests/unit_tests/test_configuration.py - TypeError: 'type' object is not subscriptable !!!!!!!!!!!!!!! Interrupted: 3 errors during collection !!!!!!!!!!!!!!! ========================== 3 errors in 1.76s ========================== ``` ### Description run pytest for https://github.com/langchain-ai/new-langgraph-project ### System Info pytest
yindo closed this issue 2026-02-20 17:41:17 -05:00
Author
Owner

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

Hmm what Python version are you on? Should be fixed if you're on 3.9+.

@sydney-runkle commented on GitHub (Jun 9, 2025): Hmm what Python version are you on? Should be fixed if you're on 3.9+.
Author
Owner

@hypntzed78 commented on GitHub (Jun 9, 2025):

Hmm what Python version are you on? Should be fixed if you're on 3.9+.

My python is 3.11.

@hypntzed78 commented on GitHub (Jun 9, 2025): > Hmm what Python version are you on? Should be fixed if you're on 3.9+. My python is 3.11.
Author
Owner

@hypntzed78 commented on GitHub (Jun 10, 2025):

My python is 3.11.

@hypntzed78 commented on GitHub (Jun 10, 2025): My python is 3.11.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langgraph#675