chore(deps): bump cachetools to 7.2.0 and fix TTLCache typing - #150
Merged
Merged
Conversation
Lockfile now resolves cachetools 7.2.0 (requires >=7.1.7). cachetools 7 ships stubs that type TTLCache.get() as V | None, so the instrument cache no longer needs a cast. Recreating order-tracking caches must use TTLCache[str, dict[str, Any]] and TTLCache[str, int] so restore loops do not mix value types. Refs #119
TexasCoding
added a commit
that referenced
this pull request
Sep 29, 2026
Bump the runtime cachetools dependency from 6.1.0 to 7.2.0 (>=7.1.7). TTLCache use is unchanged; typing matches cachetools 7 stubs. Refs #150
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Supersedes Dependabot #119 with a clean bump from current
main.cachetools7.2.0 (pyprojectlower bound>=7.1.7)TTLCacheonly (no@cached/@cachedmethod; cachetools 7 decorator breaks do not apply)castonTTLCache.get()inclient/cache.pyTTLCache[str, …]when recreating caches inconfigure_memory_limitsCloses #119
Test plan
uv run ruff check src//ruff format --check src/uv run mypy src/uv run pytest -m "unit and not slow"(local env missingtzdatafails one unrelated timezone test; CI has zone data)