Skip to content

fix(loader): accept str paths in UMFLoader.save/load - #21

Merged
dmautz1 merged 1 commit into
DocumentDrivenDX:mainfrom
dmautz1:fix/umf-loader-str-paths
Aug 31, 2026
Merged

dmautz1 merged 1 commit into
DocumentDrivenDX:mainfrom
dmautz1:fix/umf-loader-str-paths

Conversation

@dmautz1

@dmautz1 dmautz1 commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

Harvested from the parked feat/databricks-notebook-dbt-defaults branch — the one change there that fixes code on current main.

UMFLoader.save() annotated path: Path but never coerced it, so passing an f-string path died with 'str' object has no attribute 'mkdir'. Coerce on entry like load() already did, and widen both signatures to str | Path.

Loader test suite (79 tests) and format gate pass locally.

🤖 Generated with Claude Code

save() annotated path: Path but never coerced it, so passing an
f-string path died with 'str' object has no attribute 'mkdir'. Coerce
on entry like load() already did and widen both signatures to
str | Path.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@dmautz1
dmautz1 merged commit 3942747 into DocumentDrivenDX:main Aug 31, 2026
2 checks passed
@dmautz1
dmautz1 deleted the fix/umf-loader-str-paths branch August 31, 2026 18:53
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