Repository navigation
Support the new (still-private) cu.many() API in Hypothesis 6.170.10+ - #119
Merged
Zac-HD merged 9 commits intoOct 27, 2026
Merged
Conversation
Hypothesis replaced `many.more()` with a context manager which is iterated over, so generating objects raised AttributeError. We now use the new API and require hypothesis>=6.170.10. Also stop after the first reject() for an element, which the new API enforces and which previously would have raised KeyError on the second `out.pop(key)`. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UpH3gRk19SczSDZWkCm948
Match the Python versions tested by Hypothesis, which itself requires 3.11+ as of the versions we now depend on. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UpH3gRk19SczSDZWkCm948
Both currently fail due to rpds-py issues. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UpH3gRk19SczSDZWkCm948
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UpH3gRk19SczSDZWkCm948
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UpH3gRk19SczSDZWkCm948
Canonicalisation converts e.g. multipleOf: 99.0 to an int, so we generated exact multiples of any size - but jsonschema checks float multipleOf with float division, which is inexact beyond 2**53 and rejected some of these values. Clamp otherwise-unbounded sides to 2**53 when the multiplier is an integer. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UpH3gRk19SczSDZWkCm948
Fixes installing rpds-py on Python 3.15 and PyPy 3.12, and brings in newer linters and pytest - so wrap an implicit string concatenation for ruff, and pass lists rather than generators to parametrize. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UpH3gRk19SczSDZWkCm948
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UpH3gRk19SczSDZWkCm948
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.
Hypothesis replaced the private
many.more()interface with a context manager which is iterated over, so generating objects raisedAttributeError. We now use the new still-private API and requirehypothesis>=6.170.10.Also stop after the first
reject()for an element, which the new API enforces and which previously would have raised KeyError on the secondout.pop(key).Fixes #118