mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-08-25 00:52:25 +02:00
7b14ec1d7a
Bumps the minor-and-patch group in /libs/checkpoint-conformance with 1 update: [ty](https://github.com/astral-sh/ty). Updates `ty` from 0.0.24 to 0.0.25 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/astral-sh/ty/releases">ty's releases</a>.</em></p> <blockquote> <h2>0.0.25</h2> <h2>Release Notes</h2> <p>Released on 2026-03-24.</p> <h3>Breaking changes</h3> <ul> <li>Support <code>type:ignore[ty:code]</code> suppressions (<a href="https://redirect.github.com/astral-sh/ruff/pull/24096">#24096</a>)</li> </ul> <h3>Bug fixes</h3> <ul> <li>Avoid eager TypedDict diagnostics in <code>TypedDict | dict</code> unions (<a href="https://redirect.github.com/astral-sh/ruff/pull/24151">#24151</a>)</li> <li>Fix Salsa panic propagation (<a href="https://redirect.github.com/astral-sh/ruff/pull/24141">#24141</a>)</li> <li>Fix folding ranges of comments separated by statements (<a href="https://redirect.github.com/astral-sh/ruff/pull/24132">#24132</a>)</li> <li>Fix loop-header reachability cycles in conditional unpacking (<a href="https://redirect.github.com/astral-sh/ruff/pull/24006">#24006</a>)</li> <li>Fix subtyping of intersections containing <code>NewType</code>s of unions vs. unions (<a href="https://redirect.github.com/astral-sh/ruff/pull/24087">#24087</a>)</li> <li>Fix untracked reads in Salsa queries that can lead to backdating panics (<a href="https://redirect.github.com/astral-sh/ruff/pull/24051">#24051</a>)</li> <li>Prevent tainted loop bindings in cycle normalization (<a href="https://redirect.github.com/astral-sh/ruff/pull/24143">#24143</a>)</li> <li>Simplify an intersection of <code>N & ~T</code> to <code>Never</code> if <code>B & ~T</code> would simplify to <code>Never</code>, where <code>B</code> is the concrete base type of a <code>NewType</code> <code>N</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/24086">#24086</a>)</li> </ul> <h3>LSP</h3> <ul> <li>Preserve blank lines between comments and imports in add-import action (<a href="https://redirect.github.com/astral-sh/ruff/pull/24066">#24066</a>)</li> </ul> <h3>Type checking</h3> <ul> <li>Add diagnostic hint for invalid assignments involving invariant generics (<a href="https://redirect.github.com/astral-sh/ruff/pull/24032">#24032</a>)</li> <li>Add precisely-typed overloads for <code>TypedDict</code> update (<a href="https://redirect.github.com/astral-sh/ruff/pull/24101">#24101</a>)</li> <li>Disallow read-only fields in <code>TypedDict</code> updates (<a href="https://redirect.github.com/astral-sh/ruff/pull/24128">#24128</a>)</li> <li>Expand bounded typevars to their upper bounds when evaluating truthiness comparisons between intersections and literal types (<a href="https://redirect.github.com/astral-sh/ruff/pull/24082">#24082</a>)</li> <li>Emit <code>reveal_type</code> diagnostics in unreachable code (<a href="https://redirect.github.com/astral-sh/ruff/pull/24070">#24070</a>)</li> <li>Improve <code>isinstance()</code> reachability analysis (<a href="https://redirect.github.com/astral-sh/ruff/pull/24077">#24077</a>)</li> <li>Improve keyword argument narrowing for nested dictionaries (<a href="https://redirect.github.com/astral-sh/ruff/pull/24010">#24010</a>)</li> <li>Infer <code>yield</code> expression types (<a href="https://redirect.github.com/astral-sh/ruff/pull/23796">#23796</a>)</li> <li>Reduce diagnostic range for <code>invalid-metaclass</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/24145">#24145</a>)</li> <li>Support narrowing for extended walrus targets (<a href="https://redirect.github.com/astral-sh/ruff/pull/24129">#24129</a>)</li> <li>Unions/intersections of gradual types should be assignable to <code>Never</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/24056">#24056</a>)</li> </ul> <h3>Contributors</h3> <ul> <li><a href="https://github.com/MichaReiser"><code>@MichaReiser</code></a></li> <li><a href="https://github.com/AlexWaygood"><code>@AlexWaygood</code></a></li> <li><a href="https://github.com/Glyphack"><code>@Glyphack</code></a></li> <li><a href="https://github.com/sharkdp"><code>@sharkdp</code></a></li> <li><a href="https://github.com/ibraheemdev"><code>@ibraheemdev</code></a></li> <li><a href="https://github.com/charliermarsh"><code>@charliermarsh</code></a></li> <li><a href="https://github.com/mvanhorn"><code>@mvanhorn</code></a></li> <li><a href="https://github.com/carljm"><code>@carljm</code></a></li> </ul> <h2>Install ty 0.0.25</h2> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/astral-sh/ty/blob/main/CHANGELOG.md">ty's changelog</a>.</em></p> <blockquote> <h2>0.0.25</h2> <p>Released on 2026-03-24.</p> <h3>Breaking changes</h3> <ul> <li>Support <code>type:ignore[ty:code]</code> suppressions (<a href="https://redirect.github.com/astral-sh/ruff/pull/24096">#24096</a>)</li> </ul> <h3>Bug fixes</h3> <ul> <li>Avoid eager TypedDict diagnostics in <code>TypedDict | dict</code> unions (<a href="https://redirect.github.com/astral-sh/ruff/pull/24151">#24151</a>)</li> <li>Fix Salsa panic propagation (<a href="https://redirect.github.com/astral-sh/ruff/pull/24141">#24141</a>)</li> <li>Fix folding ranges of comments separated by statements (<a href="https://redirect.github.com/astral-sh/ruff/pull/24132">#24132</a>)</li> <li>Fix loop-header reachability cycles in conditional unpacking (<a href="https://redirect.github.com/astral-sh/ruff/pull/24006">#24006</a>)</li> <li>Fix subtyping of intersections containing <code>NewType</code>s of unions vs. unions (<a href="https://redirect.github.com/astral-sh/ruff/pull/24087">#24087</a>)</li> <li>Fix untracked reads in Salsa queries that can lead to backdating panics (<a href="https://redirect.github.com/astral-sh/ruff/pull/24051">#24051</a>)</li> <li>Prevent tainted loop bindings in cycle normalization (<a href="https://redirect.github.com/astral-sh/ruff/pull/24143">#24143</a>)</li> <li>Simplify an intersection of <code>N & ~T</code> to <code>Never</code> if <code>B & ~T</code> would simplify to <code>Never</code>, where <code>B</code> is the concrete base type of a <code>NewType</code> <code>N</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/24086">#24086</a>)</li> </ul> <h3>LSP</h3> <ul> <li>Preserve blank lines between comments and imports in add-import action (<a href="https://redirect.github.com/astral-sh/ruff/pull/24066">#24066</a>)</li> </ul> <h3>Type checking</h3> <ul> <li>Add diagnostic hint for invalid assignments involving invariant generics (<a href="https://redirect.github.com/astral-sh/ruff/pull/24032">#24032</a>)</li> <li>Add precisely-typed overloads for <code>TypedDict</code> update (<a href="https://redirect.github.com/astral-sh/ruff/pull/24101">#24101</a>)</li> <li>Disallow read-only fields in <code>TypedDict</code> updates (<a href="https://redirect.github.com/astral-sh/ruff/pull/24128">#24128</a>)</li> <li>Expand bounded typevars to their upper bounds when evaluating truthiness comparisons between intersections and literal types (<a href="https://redirect.github.com/astral-sh/ruff/pull/24082">#24082</a>)</li> <li>Emit <code>reveal_type</code> diagnostics in unreachable code (<a href="https://redirect.github.com/astral-sh/ruff/pull/24070">#24070</a>)</li> <li>Improve <code>isinstance()</code> reachability analysis (<a href="https://redirect.github.com/astral-sh/ruff/pull/24077">#24077</a>)</li> <li>Improve keyword argument narrowing for nested dictionaries (<a href="https://redirect.github.com/astral-sh/ruff/pull/24010">#24010</a>)</li> <li>Infer <code>yield</code> expression types (<a href="https://redirect.github.com/astral-sh/ruff/pull/23796">#23796</a>)</li> <li>Reduce diagnostic range for <code>invalid-metaclass</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/24145">#24145</a>)</li> <li>Support narrowing for extended walrus targets (<a href="https://redirect.github.com/astral-sh/ruff/pull/24129">#24129</a>)</li> <li>Unions/intersections of gradual types should be assignable to <code>Never</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/24056">#24056</a>)</li> </ul> <h3>Contributors</h3> <ul> <li><a href="https://github.com/MichaReiser"><code>@MichaReiser</code></a></li> <li><a href="https://github.com/AlexWaygood"><code>@AlexWaygood</code></a></li> <li><a href="https://github.com/Glyphack"><code>@Glyphack</code></a></li> <li><a href="https://github.com/sharkdp"><code>@sharkdp</code></a></li> <li><a href="https://github.com/ibraheemdev"><code>@ibraheemdev</code></a></li> <li><a href="https://github.com/charliermarsh"><code>@charliermarsh</code></a></li> <li><a href="https://github.com/mvanhorn"><code>@mvanhorn</code></a></li> <li><a href="https://github.com/carljm"><code>@carljm</code></a></li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/astral-sh/ty/commit/d60899a14f6fe368e477c17f4205483aebdf84a8"><code>d60899a</code></a> Bump version to 0.0.25 (<a href="https://redirect.github.com/astral-sh/ty/issues/3125">#3125</a>)</li> <li><a href="https://github.com/astral-sh/ty/commit/db65b3e118a705be2694032fd2df613ea11565f1"><code>db65b3e</code></a> Update documentation to reflect <code>type:ignore</code> changes (<a href="https://redirect.github.com/astral-sh/ty/issues/3121">#3121</a>)</li> <li><a href="https://github.com/astral-sh/ty/commit/9e464322e6a00a651861ec63af09f4e82fc903be"><code>9e46432</code></a> Use ty in Emacs with Eglot (<a href="https://redirect.github.com/astral-sh/ty/issues/3107">#3107</a>)</li> <li><a href="https://github.com/astral-sh/ty/commit/1f30d7c82c0ce9d99533cd5924180a4365941c06"><code>1f30d7c</code></a> Update artifact github actions dependencies (<a href="https://redirect.github.com/astral-sh/ty/issues/3113">#3113</a>)</li> <li><a href="https://github.com/astral-sh/ty/commit/255ef63825d35fb03f2755f05f2fd66b96a2c873"><code>255ef63</code></a> Revert "Update Artifact GitHub Actions dependencies" (<a href="https://redirect.github.com/astral-sh/ty/issues/3112">#3112</a>)</li> <li><a href="https://github.com/astral-sh/ty/commit/5fe54ca92587d69ac83fc5614b4e9566f692ae34"><code>5fe54ca</code></a> Update Artifact GitHub Actions dependencies (<a href="https://redirect.github.com/astral-sh/ty/issues/3108">#3108</a>)</li> <li><a href="https://github.com/astral-sh/ty/commit/a0cf1e7f3cacec90225b6b99d239ca43739d2800"><code>a0cf1e7</code></a> Update Swatinem/rust-cache action to v2.9.1 (<a href="https://redirect.github.com/astral-sh/ty/issues/3110">#3110</a>)</li> <li><a href="https://github.com/astral-sh/ty/commit/fd2acb44500fb65fa33e1e6b6c27daeaed382467"><code>fd2acb4</code></a> Update prek dependencies (<a href="https://redirect.github.com/astral-sh/ty/issues/3109">#3109</a>)</li> <li>See full diff in <a href="https://github.com/astral-sh/ty/compare/0.0.24...0.0.25">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore <dependency name> major version` will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself) - `@dependabot ignore <dependency name> minor version` will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself) - `@dependabot ignore <dependency name>` will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself) - `@dependabot unignore <dependency name>` will remove all of the ignore conditions of the specified dependency - `@dependabot unignore <dependency name> <ignore condition>` will remove the ignore condition of the specified dependency and ignore conditions </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
langgraph-checkpoint-conformance
Conformance test suite for LangGraph checkpointer implementations.
Validates that a BaseCheckpointSaver subclass correctly implements the checkpoint storage contract — blob round-trips, metadata preservation, namespace isolation, incremental channel updates, and more.
Installation
pip install langgraph-checkpoint-conformance
Quick start
Register your checkpointer with @checkpointer_test and run validate():
import asyncio
from langgraph.checkpoint.conformance import checkpointer_test, validate
@checkpointer_test(name="MyCheckpointer")
async def my_checkpointer():
saver = MyCheckpointer(...)
yield saver
# cleanup runs after yield
async def main():
report = await validate(my_checkpointer)
report.print_report()
assert report.passed_all_base()
asyncio.run(main())
Or in a pytest test:
import pytest
from langgraph.checkpoint.conformance import checkpointer_test, validate
@checkpointer_test(name="MyCheckpointer")
async def my_checkpointer():
yield MyCheckpointer(...)
@pytest.mark.asyncio
async def test_conformance():
report = await validate(my_checkpointer)
report.print_report()
assert report.passed_all_base()
Capabilities
The suite tests base capabilities (required) and extended capabilities (optional, auto-detected):
| Capability | Required | Method |
|---|---|---|
put |
yes | aput |
put_writes |
yes | aput_writes |
get_tuple |
yes | aget_tuple |
list |
yes | alist |
delete_thread |
yes | adelete_thread |
delete_for_runs |
no | adelete_for_runs |
copy_thread |
no | acopy_thread |
prune |
no | aprune |
Extended capabilities are detected by checking whether the method is overridden from BaseCheckpointSaver. If not overridden, those tests are skipped.
Options
Progress output
from langgraph.checkpoint.conformance.report import ProgressCallbacks
# Dot-style progress (. per pass, F per fail)
report = await validate(my_checkpointer, progress=ProgressCallbacks.default())
# Verbose (per-test names + stacktraces on failure)
report = await validate(my_checkpointer, progress=ProgressCallbacks.verbose())
Skip capabilities
@checkpointer_test(name="MyCheckpointer", skip_capabilities={"prune"})
async def my_checkpointer():
yield MyCheckpointer(...)
Run specific capabilities
report = await validate(my_checkpointer, capabilities={"put", "list"})
Lifespan (one-time setup/teardown)
For expensive setup like database creation:
async def db_lifespan():
await create_database()
yield
await drop_database()
@checkpointer_test(name="PostgresSaver", lifespan=db_lifespan)
async def pg_checkpointer():
async with PostgresSaver.from_conn_string(CONN_STRING) as saver:
yield saver