Skip to content

One signature merge: merge_signatures with a kind/default/annotation conflict model (#43) - #135

Open
thorwhalen wants to merge 2 commits into
masterfrom
single-signature-merge
Open

thorwhalen wants to merge 2 commits into
masterfrom
single-signature-merge

Conversation

@thorwhalen

Copy link
Copy Markdown
Member

Closes #43. New i2.signatures.merge_signatures(sig1, sig2, *more, kind=, default=, annotation=): the one merge, built on the conflict model of meshed's parameter_merger (kind, default, annotation; conservative by default, any disagreement raises IncompatibleSignatures). ch_to_all_pk is the kind='all_pk' policy; default_conflict_method maps to default/annotation policies via one table. Sig.merge_with_sig and Sig.__add__ are thin callers, with no behaviour change for existing callers except two lenient edge cases (string specs are now accepted with ch_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.

…conflict model; merge_with_sig and __add__ are thin callers (#43)

This branch has not been deployed

No deployments
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.

Need a more powerful and clean signature merging functionality

1 participant