Skip to content

Conversation

@iamrajiv
Copy link
Contributor

@iamrajiv iamrajiv commented Dec 4, 2025

I noticed the NotImplementedError in the serialize methods while exploring the codebase. I implemented the missing serialize() functionality for:

  • SqliteRelatedTermsFuzzy.serialize()
  • SqliteRelatedTermsIndex.serialize()

Copy link
Collaborator

@gvanrossum gvanrossum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! This looks good except for one nit.

assert fresh_fuzzy is not None
assert await fresh_fuzzy.size() == 3

# Use concrete type to access get_terms (not in interface)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if get_terms() should be added to the interface. (Probably not in this PR unless it's a one-liner -- which it isn't since you'd have to implement it for the memory provider too.)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gvanrossum I agree get_terms() could be useful in the interface. I'll keep it out of this PR to keep the scope small, but happy to open a follow-up issue/PR to add it to the interface and implement it for both providers if that would be helpful.

@gvanrossum
Copy link
Collaborator

@iamrajiv If you're around could you address my nits? Then we can merge it.

@iamrajiv
Copy link
Contributor Author

Thank you for the review, @gvanrossum. I made the changes you suggested. Could you please review it again?

Copy link
Collaborator

@gvanrossum gvanrossum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect! Merging now.

@gvanrossum gvanrossum merged commit 04b976f into microsoft:main Dec 23, 2025
15 of 27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants