-
Notifications
You must be signed in to change notification settings - Fork 50
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
Fix jsanitize
when recursive_msonable=True
#727
Fix jsanitize
when recursive_msonable=True
#727
Conversation
WalkthroughThe changes in this pull request focus on the Changes
Assessment against linked issues
Possibly related PRs
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (2)
🔇 Additional comments (3)monty/json.py (1)
The changes ensure that when Let's verify the fix handles deeply nested MSONable objects correctly: ✅ Verification successfulBased on the test file content, I can now provide a definitive response. The test file contains comprehensive test cases that verify the handling of nested MSONable objects, particularly in The implementation correctly handles nested MSONable objects. The test cases confirm that:
🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Description: Search for test cases that verify nested MSONable objects
# Test: Look for test cases that create nested MSONable objects
rg -A 5 "MSONable.*=.*MSONable" tests/
Length of output: 40 Script: #!/bin/bash
# Let's try a different approach to find test cases related to nested MSONable objects
# First, let's look for test files that might test jsanitize functionality
rg -l "jsanitize" tests/
# Then, let's look for test classes or functions that might test MSONable objects
rg -l "MSONable" tests/
# Finally, let's examine the content of test_json.py if it exists
fd "test_json.py" tests/ --exec cat {}
Length of output: 28170 tests/test_json.py (2)
The change to import version from the package instead of locally is a good practice.
The test case thoroughly verifies that:
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Closed in favor of #726. |
Summary
Closes #726 by fixing the
jsanitize(recursive_msonable=True)
behavior.Checklist
ruff
.mypy
.duecredit
@due.dcite
decorators to reference relevant papers by DOI (example)Tip: Install
pre-commit
hooks to auto-check types and linting before every commit:Summary by CodeRabbit
New Features
Tests
jsanitize
function with nested MSONable objects.