You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refactor: Simplify IniConfig constructor and parse() method
Consolidate __init__ to accept optional _sections and _sources parameters,
allowing parse() to simply call the constructor.
Changes:
- Add _sections and _sources optional parameters to __init__
- Compute sections and sources first, then assign once to Final attributes
- When pre-parsed data provided, use it directly (called from parse())
- Otherwise, parse the data normally (backward compatible path)
- Simplify parse() to just call constructor with pre-parsed data
This makes the code cleaner and easier to understand while maintaining
the exact same functionality and backward compatibility.
All 49 tests pass.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
0 commit comments