GitHub
06/12/2025, 7:35 PMdict.setdefault to fill in state dictionary
Pull request opened by edgarrmondragon
## Summary by Sourcery
Refactor state helper functions to simplify nested dictionary and list initialization by leveraging dict.setdefault.
Enhancements:
⢠Combine bookmark existence checks in get_state_if_exists into a single conditional.
⢠Use dict.setdefault to initialize 'bookmarks', stream IDs, and 'partitions' in get_writeable_state_dict.
---
š Documentation preview š: https://meltano-sdk--3097.org.readthedocs.build/en/3097/
meltano/sdkGitHub
06/12/2025, 7:35 PMdict.setdefault to fill in state dictionary
Pull request ready for review by edgarrmondragon
meltano/sdkGitHub
06/12/2025, 7:40 PMdict.setdefault to fill in state dictionary
Pull request merged by edgarrmondragon
meltano/sdk