fix(core): make yield_keys prefix keyword-only to match BaseStore#34659
Conversation
Merging this PR will not alter performance
|
yield_keys prefix keyword-only to match BaseStore
|
Krud-x could you resolve CI failures please? |
Code ReviewOverviewThis PR correctly addresses the signature mismatch between CI/CD Failure AnalysisThe PR is currently failing 11 CI/CD checks due to test code that needs to be updated. The failures are caused by existing tests that call Root CauseThe mypy type checker is correctly identifying violations in
These test files are calling Required FixYou need to update the test file # Current (incorrect after your changes)
store.yield_keys(some_prefix)To: # Correct
store.yield_keys(prefix=some_prefix)Code Logic AssessmentThe core code changes are correct:
Additional Considerations
RecommendationUpdate References
|
|
I’ve updated the failing tests to use keyword-only arguments for yield_keys and ayield_keys as suggested. |
…load functionality" This reverts commit e8cbae4.
d22cfaf
into
langchain-ai:master
This PR fixes a signature mismatch between BaseStore and its concrete
implementations by making the
prefixparameter keyword-only inyield_keysandayield_keys.This aligns the implementations with the BaseStore interface contract,
prevents Liskov Substitution Principle violations, and ensures consistent
method signatures across store backends.
Fixes #32637
Breaking changes
None. This change only enforces the existing abstract interface and does
not modify runtime behavior
Testing
Parts of this contribution were assisted by generative AI for
code navigation and drafting. All final design decisions and changes were
reviewed and validated manually.