Skip to content

feat: public to_code() on design parts; full, valid reprs; error type in to_dict - #314

Merged
MamadouSDiallo merged 3 commits into
mainfrom
fix/runnable-reprs
Oct 16, 2026
Merged

MamadouSDiallo merged 3 commits into
mainfrom
fix/runnable-reprs

Conversation

@MamadouSDiallo

Copy link
Copy Markdown
Contributor
  • to_code() on Design, BrrWgts/JackknifeWgts/BootstrapWgts/SdrWgts, WgtAdjustment, Singleton, PopSize: eval(x.to_code()) == x (public face of the _to_code sample.to_code() already used).
  • Design repr shows the full replicate spec and wgt_adjustment; replicate repr quotes method/kind and says fay_coef=, so svy.<repr> evaluates.
  • SvyError.to_dict()["error"]["type"] is the class name.

No existing test pinned the old repr text.

@MamadouSDiallo
MamadouSDiallo merged commit b8307cf into main Oct 16, 2026
12 checks passed
@MamadouSDiallo
MamadouSDiallo deleted the fix/runnable-reprs branch October 16, 2026 17:12
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.

1 participant