Skip to content

fix: avoid shared mutable default hypothesis sets - #41

Open
Chessing234 wants to merge 1 commit into
teorth:mainfrom
Chessing234:fix/mutable-default-hypotheses
Open

fix: avoid shared mutable default hypothesis sets#41
Chessing234 wants to merge 1 commit into
teorth:mainfrom
Chessing234:fix/mutable-default-hypotheses

Conversation

@Chessing234

@Chessing234 Chessing234 commented Jul 18, 2026

Copy link
Copy Markdown
Contributor

Summary

  • is_fixed/is_bounded/simp/rsimp used hypotheses=set() defaults.
  • Switch to None and allocate a fresh set per call.

Test plan

  • test_no_mutable_hypothesis_defaults

Use None defaults in is_fixed/is_bounded/simp/rsimp so callers cannot share state.
@Chessing234
Chessing234 force-pushed the fix/mutable-default-hypotheses branch from 40e6dde to c5f6494 Compare August 5, 2026 10:27
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