Skip to content

Conversation

@hynek
Copy link
Member

@hynek hynek commented Jul 27, 2025

Fixes #1246

doesn't it @AdrianSosic?

mapping_validator = attrib(default=None, validator=optional(is_callable()))
key_validator = attrib(validator=optional(is_callable()))
value_validator = attrib(validator=optional(is_callable()))
mapping_validator = attrib(validator=optional(is_callable()))
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This default made not sense given that _DeepMapping is private and only to be constructed by ourselves.

@AdrianSosic
Copy link

Fixes #1246

doesn't it @AdrianSosic?

Yes, does indeed 🎉 Thanks for fixing!

@hynek hynek merged commit cbaef3f into main Jul 28, 2025
19 checks passed
@hynek hynek deleted the fix-1246 branch July 28, 2025 07:55
AdrianSosic added a commit to emdgroup/baybe that referenced this pull request Jul 29, 2025
AdrianSosic added a commit to emdgroup/baybe that referenced this pull request Oct 7, 2025
AdrianSosic added a commit to emdgroup/baybe that referenced this pull request Oct 7, 2025
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.

Optional inner validators for deep_mapping

3 participants