Download Latest Version Hypothesis version 6.155.2 source code.tar.gz (9.6 MB)
Email in envelope

Get an email when there's a new version of Hypothesis

Home / v6.154.2
Name Modified Size InfoDownloads / Week
Parent folder
Hypothesis version 6.154.2 source code.tar.gz 2026-05-28 9.6 MB
Hypothesis version 6.154.2 source code.zip 2026-05-28 10.1 MB
README.md 2026-05-28 645 Bytes
Totals: 3 Items   19.7 MB 0

This patch improves the type annotations of "fixed_dictionaries()", which now accepts a "Mapping" rather than requiring an invariant "dict". Because the value type is covariant, type-checkers can now infer the generated type even when the strategies are heterogeneous, e.g. a "mapping" annotated as "dict[str, SearchStrategy[int] | SearchStrategy[str]]" (issue [#4665]).

The "mapping" and "optional" arguments may now also have different key and value types, which are unioned in the inferred result.

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

Source: README.md, updated 2026-05-28