Closed bleudev closed 5 months ago
This pull request addresses issue #21 by implementing several suggestions from Sourcery to improve the code quality and functionality of the UDict class and its associated tests. The changes include refactoring code for better readability, adding new test cases, and fixing existing ones.
Files | Changes |
---|---|
tests/test_udict.py ufpy/udict.py |
Refactored methods for better readability and efficiency, added new test cases, and fixed existing ones to ensure comprehensive coverage and correct functionality. |
@sourcery-ai review
closes #21
Summary by Sourcery
This pull request addresses several issues in the UDict class, including fixing dictionary initialization, item setting logic, length calculation, iteration, and boolean checks. Additionally, new tests have been added to verify these fixes and ensure proper exception handling.