Repository navigation
Conversation
Give example with `NamedTuple`
quinnj
added a commit
that referenced
this pull request
Oct 14, 2026
* Preserve field dispatch for ignored defaults Remove the invalid fallback that references x in the type-only dispatcher. Unknown or excluded names return false without running the callback; defaults continue to be applied by construction. Add regression tests for these cases. Restore validation on current Julia: account for UUID becoming public in Base, replace retired CI actions, authenticate coverage with GitHub OIDC, and repair strict documentation builds. The corrected NamedTuple defaults example was proposed by hellemo in #101. Full suites pass on Julia 1.6.7, 1.12.6, and 1.13.1; the new 20-check regression set and JSON3 1.14.3 reproduction pass. Documenter 1.19 builds with strict checks. AI disclosure: This work was prepared with assistance from OpenAI Codex. * Trim applyfield defaults test; don't fail CI on Codecov upload errors Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Member
|
[comment generated via AI] Thanks! This exact change landed in #105, whose commit message credits this PR. Closing as already merged. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Make example in docstring return a
NamedTuple.I was very confused and did not get my defaults to work until I noticed that
defaults(::Type{T}) where {T}returns a NamedTuple.