github HypothesisWorks/hypothesis hypothesis-python-5.26.0
Hypothesis for Python - version 5.26.0

latest releases: hypothesis-python-6.104.2, hypothesis-python-6.104.1, hypothesis-python-6.104.0...
3 years ago

"register_type_strategy()" no longer accepts parametrised user-defined
generic types, because the resolution logic was quite badly broken
(issue #2537).

Instead of registering a strategy for e.g. "MyCollection[int]", you
should register a function for "MyCollection" and inspect the type
parameters within that function.

Thanks to Nikita Sobolev for the bug report, design assistance, and
pull request to implement this feature!

The canonical version of these notes (with links) is on readthedocs.

Don't miss a new hypothesis release

NewReleases is sending notifications on new releases.