CLI: resolve jsonargparse deprecation warning #20802
CLI: resolve jsonargparse deprecation warning
d861366f
[pre-commit.ci] auto fixes from pre-commit.com hooks
1305186c
Borda
approved these changes
on 2025-05-19
Borda
merged
4b47e0fc
into master 22 days ago
adamjstewart
deleted the fixes/jsonargparse-deprecation branch 22 days ago
Assignees
No one assigned
What does this PR do?
The latest jsonargparse release deprecates
set_config_read_mode
in favor ofset_parsing_settings
. This results in the following warning message during testing:This PR defaults to the new function when available and falls back to the old function for older versions. This makes the code more futureproof and compatible with jsonargparse v5 once it is released. Let me know if you would rather replace the try-except with a version check.
Before submitting
PR review
Anyone in the community is welcome to review the PR.
Before you start reviewing, make sure you have read the review guidelines. In short, see the following bullet-list:
Reviewer checklist
📚 Documentation preview 📚: https://pytorch-lightning--20802.org.readthedocs.build/en/20802/