Skip to content

declare and check the DFN fields mixins use - #447

Merged
wpbonelli merged 1 commit into
modflowpy:developfrom
wpbonelli:mixin-requires
Oct 10, 2026
Merged

wpbonelli merged 1 commit into
modflowpy:developfrom
wpbonelli:mixin-requires

Conversation

@wpbonelli

Copy link
Copy Markdown
Member
  • declare the DFN fields each mixin uses
  • fail sync if the DFNs lack one

Each mixin lists the DFN fields it uses in _requires, and check_mixins
fails a sync to DFNs missing any of them, naming the mixin, component
and fields, before anything is written. It reads _requires from the
source rather than importing the mixin, since that can import
generated modules. A test keeps the declarations honest: every DFN
field a mixin reads off self must be declared.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@wpbonelli wpbonelli added this to the MVP milestone Oct 10, 2026
@wpbonelli
wpbonelli merged commit 405faf9 into modflowpy:develop Oct 10, 2026
17 checks passed
@wpbonelli
wpbonelli deleted the mixin-requires branch October 10, 2026 11:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant