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.1
Name Modified Size InfoDownloads / Week
Parent folder
Hypothesis version 6.154.1 source code.tar.gz 2026-05-28 9.6 MB
Hypothesis version 6.154.1 source code.zip 2026-05-28 10.1 MB
README.md 2026-05-28 673 Bytes
Totals: 3 Items   19.7 MB 0

This patch fixes a bug where resolving recursive forward references in "from_type()" (such as "A = list[Union["A", str]]", added in v6.152.11) could recurse until it hit the interpreter's recursion limit before falling back to a deferred strategy. Because this depended on the ambient stack depth, it occasionally surfaced as a spurious "RecursionError" or other flaky failure. We now break the cycle eagerly by deferring, so resolution uses a small and constant amount of stack regardless of how deeply nested the reference is.

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

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