Skip to content

Hypothesis version 6.152.11

Choose a tag to compare

@Zac-HD Zac-HD released this 26 May 00:16

This patch adds support for recursive forward references in
"from_type()", such as "A = list[Union["A", str]]" (issue #4542).
Previously, such recursive type aliases would raise a
"ResolutionFailed" error. Now, Hypothesis can automatically resolve
the forward reference by looking it up in the caller's namespace. This
also resolves forward references inside "type[...]", such as
"type["MyClass"]".

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