Skip to content

Add read_yml and write_yml Path extensions#782

Open
motdam wants to merge 2 commits intoAnswerDotAI:mainfrom
motdam:add-yml-path-helpers
Open

Add read_yml and write_yml Path extensions#782
motdam wants to merge 2 commits intoAnswerDotAI:mainfrom
motdam:add-yml-path-helpers

Conversation

@motdam
Copy link

@motdam motdam commented Mar 2, 2026

Adds Path.read_yml() and Path.write_yml() methods, following the same pattern as the existing read_json/write_json helpers.

PyYAML is imported lazily inside each function, with an ImportError message if it's not installed, so there's no new dependency added to the package.

@motdam motdam force-pushed the add-yml-path-helpers branch from 2cb6d75 to c0199f6 Compare March 2, 2026 17:26
@motdam motdam marked this pull request as ready for review March 2, 2026 17:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant