Commit af998df
Address PR #376 R4 (1 P1 + 1 P3)
R4 P1: HeterogeneousAdoptionDiD.fit() inadvertently made `survey`,
`weights`, and `cband` keyword-only when adding the new `survey_design=`
kwarg, by inserting `*,` before all four. This broke pre-PR positional
callers, contradicting the "additive, non-breaking" CHANGELOG claim.
Reorder so `survey`, `weights`, `cband` keep their pre-PR
positional-or-keyword status; only `survey_design=` is the new
keyword-only addition (placed after the `*,` separator at the end).
R4 P3: added test_legacy_positional_call_back_compat in
TestHADFitDeprecation that exercises the full pre-PR positional call
shape: `fit(df, "y", "d", "time", "unit", None, "overall", sd, None,
True)` — locks the back-compat contract.
The 6 array-in pretest helpers + workflow + qug_test were unaffected by
this issue: their pre-PR signatures already had `*,` before survey/
weights/etc, so those kwargs were already keyword-only.
551 tests pass.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 03c5c9d commit af998df
2 files changed
Lines changed: 32 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2789 | 2789 | | |
2790 | 2790 | | |
2791 | 2791 | | |
2792 | | - | |
2793 | | - | |
| 2792 | + | |
| 2793 | + | |
| 2794 | + | |
| 2795 | + | |
2794 | 2796 | | |
2795 | 2797 | | |
2796 | 2798 | | |
| 2799 | + | |
| 2800 | + | |
2797 | 2801 | | |
2798 | 2802 | | |
2799 | 2803 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
692 | 692 | | |
693 | 693 | | |
694 | 694 | | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
695 | 721 | | |
696 | 722 | | |
697 | 723 | | |
| |||
0 commit comments