<#9300 fix: Do not try to cast expandable inherite...
# meltano-repo-activity
g
#9300 fix: Do not try to cast expandable inherited settings Pull request opened by edgarrmondragon ## Description ## Related Issues • Closes #9299 ## Summary by Sourcery Disable casting for expandable inherited settings and expose control over value casting. Bug Fixes: • Prevent casting of expandable inherited settings to avoid invalid type conversions. Enhancements: • Add a
cast
parameter to
set_with_metadata
to control value casting. • Restrict automatic casting in
get_with_metadata
to non-expandable settings only. • Remove unused type variable and refine type hints in plugin settings service and CLI. Tests: • Add
test_get_expandable_inherited
to verify that expandable inherited settings are not cast. ## Summary by Sourcery Prevent automatic casting of expandable inherited settings and expose explicit control over value casting in settings APIs, while refining related type hints. Bug Fixes: • Prevent casting of expandable inherited settings to avoid invalid type conversions. Enhancements: • Add a
cast
parameter to
set_with_metadata
to allow callers to disable casting. • Restrict automatic value casting in
get_with_metadata
to non-expandable settings only. Tests: • Add
test_get_expandable_inherited
to verify that expandable inherited settings bypass casting. meltano/meltano