-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
bugSomething isn't workingSomething isn't workingmindtrace-registryIssues raised from registry module in mindtrace packageIssues raised from registry module in mindtrace package
Milestone
Description
Description
Currently, the Registry's dictionary API does not perfectly mirror its methods API, leading to some subtle bugs.
For instance:
from mindtrace.registry import Registry
reg = Registry()
reg[["a", "b"]] = [1, 2]
reg[["a", "b"]] = [10, 20] # BUG: command goes through, but values are NOT updated
reg.save(["a", "b"]) = [10, 20] # works as expected, values ARE updatedSimilarly:
del reg[["a", "b"]] # BUG: raises TypeError: unhashable type: 'list'
reg.delete(["a", "b"]) # works as expectedAcceptance Criteria
- Ensure
Registry's dictionary API perfectly aligns with its methods API - Unit tests demonstrating the above with 100% coverage
Priority
Medium (important but not urgent)
Estimated Effort (Story Points)
1 (0.5 day)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingmindtrace-registryIssues raised from registry module in mindtrace packageIssues raised from registry module in mindtrace package