Repository navigation
Release v0.5.0: Public API cleanup and strict PEP 561 typing - #7
Merged
MUDASSIR-75 merged 12 commits intoNov 5, 2026
Merged
Conversation
- Introduce core/types.py with public type aliases, protocols, and typed dicts - Clean CacheConfig by removing legacy model/system_prompt/temperature fields - Explicitly reject backend='async_redis' in CacheConfig with migration guidance - Separate store_shared from store in SharedRedisCacheBackend to satisfy LSP - Document breaking keyword argument changes in docs/migration-v0.5.md
…API classification
…, and assert_type gates
…across README and docs
… singleflight store args
Abdullahbinmushtaq
force-pushed
the
feat/v0.5-api-typing
branch
from
November 4, 2026 17:39
bf0f7a5 to
8503b48
Compare
MUDASSIR-75
approved these changes
Nov 5, 2026
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.
This PR releases LongCache v0.5.0, focused on cleaning up public API signatures and adding full static typing support.
Key Changes
py.typed, strictmypyannotations across all 34 modules, generic type preservation for@cache.cachedandget_or_compute, and typed hook/snapshot contracts.model,system_prompt,temperature,track_miss) and internal**kwargs/_-prefixed parameters from public methods.PUBLIC_API_STABILITYclassifying all public exports asstable-candidate,experimental, orpass-through.README.mdandCHANGELOG.md, and preserved full Format-2 SQLite/Redis store compatibility with v0.4.0.