Skip to content

Conversation

@wpbonelli
Copy link
Member

@wpbonelli wpbonelli commented Oct 15, 2025

Allows using Dfn/Field spec objects explicitly by passing a dictionary to __init__ via double star syntax, or via from_dict which handles field structuring automatically, and with strict=False ignores unrecognized keys (like pydantic's extra="ignore"), if strict=True unrecognized keys cause an error (like pydantic's extra="forbid")

@wpbonelli wpbonelli added the enhancement New feature or request label Oct 15, 2025
@wpbonelli wpbonelli merged commit 997538c into MODFLOW-ORG:develop Oct 15, 2025
15 checks passed
@wpbonelli wpbonelli deleted the dfn-from-dict branch October 15, 2025 05:03
@github-actions github-actions bot mentioned this pull request Oct 28, 2025
wpbonelli added a commit to wpbonelli/modflow-devtools that referenced this pull request Jan 20, 2026
Allows using Dfn/Field spec objects explicitly by passing a dictionary to __init__ via double star syntax, or via from_dict which handles field structuring automatically, and with strict=False ignores unrecognized keys (like pydantic's extra="ignore"), if strict=True unrecognized keys cause an error (like pydantic's extra="forbid")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant