Skip to content

fix: ensure version values are strings before Tag comparison (#40) #41

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 13, 2025

Conversation

bsbodden
Copy link
Contributor

This fixes issue #40 where numeric version values caused TypeError
when compared with RedisVL Tag objects. The Tag type only accepts
specific types (str, list, set, tuple, None) for comparison operations.

The fix adds string conversion for all version values in the _dump_blobs
method before they're used in Tag comparisons:

  • Added tests to reproduce and verify the issue
  • Added explicit string conversion using dict comprehension
  • Verified compatibility with existing functionality

This prevents "TypeError: Right side argument passed to operator ==
with left side argument Tag must be of type..." errors when numeric
versions are used.

  This fixes issue #40 where numeric version values caused TypeError
  when compared with RedisVL Tag objects. The Tag type only accepts
  specific types (str, list, set, tuple, None) for comparison operations.

  The fix adds string conversion for all version values in the _dump_blobs
  method before they're used in Tag comparisons:
  - Added tests to reproduce and verify the issue
  - Added explicit string conversion using dict comprehension
  - Verified compatibility with existing functionality

  This prevents "TypeError: Right side argument passed to operator ==
  with left side argument Tag must be of type..." errors when numeric
  versions are used.
@bsbodden bsbodden merged commit b045e2b into main May 13, 2025
19 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.

1 participant