mirror of
https://github.com/hwchase17/langchain.git
synced 2025-10-22 17:50:03 +00:00
## Summary - Add comprehensive type hints to the MyInMemoryStore example code in BaseStore docstring - Improve documentation quality and educational value for developers - Align with LangChain's coding standards requiring type hints on all Python code ## Changes Made - Added return type annotations to all methods (__init__, mget, mset, mdelete, yield_keys) - Added parameter type annotations using proper generic types (Sequence, Iterator) - Added instance variable type annotation for the store attribute - Used modern Python union syntax (str | None) for optional types ## Test Plan - Verified Python syntax validity with ast.parse() - No functional changes to actual code, only documentation improvements - Example code now follows best practices and coding standards This change improves the educational value of the example code and ensures consistency with LangChain's requirement that "All Python code MUST include type hints and return types" as specified in the development guidelines. --------- Co-authored-by: sadiqkhzn <sadiqkhzn@users.noreply.github.com> Co-authored-by: Mason Daugherty <mason@langchain.dev>