Repository navigation
One signature merge: merge_signatures with a kind/default/annotation conflict model (#43) - #135
Open
thorwhalen wants to merge 2 commits into
Open
thorwhalen wants to merge 2 commits into
thorwhalen wants to merge 2 commits into
Conversation
…conflict model; merge_with_sig and __add__ are thin callers (#43)
…erge_with_sig); honour a subclass's chain
This branch has not been deployed
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.
Closes #43. New
i2.signatures.merge_signatures(sig1, sig2, *more, kind=, default=, annotation=): the one merge, built on the conflict model of meshed'sparameter_merger(kind, default, annotation; conservative by default, any disagreement raisesIncompatibleSignatures).ch_to_all_pkis thekind='all_pk'policy;default_conflict_methodmaps todefault/annotationpolicies via one table.Sig.merge_with_sigandSig.__add__are thin callers, with no behaviour change for existing callers except two lenient edge cases (string specs are now accepted withch_to_all_pk/+; an invalid method plus a kind mismatch reports the method error first).Gate: i2 suite and doctests 937 passed; an independent differential battery (about 15,000 cases against master) found one regression (fill method raising on conflicting annotations), fixed with a test. Dependents gate: 40 pass, 5 fail, 2 timeout of 48; the failing five (crude, smart-cv, streamlitfront, uf, wealth) fail identically with master's i2, and the two timeouts are the usual long suites. dol, meshed, http2py suites pass.