File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -18,6 +18,20 @@ Hypothesis 6.x
1818
1919 .. include:: ../RELEASE.rst
2020
21+ .. _v6.152.11:
22+
23+ ---------------------
24+ 6.152.11 - 2026-05-26
25+ ---------------------
26+
27+ This patch adds support for recursive forward references in
28+ :func:`~hypothesis.strategies.from_type`, such as
29+ ``A = list[Union["A", str]]`` (:issue:`4542`).
30+ Previously, such recursive type aliases would raise a ``ResolutionFailed``
31+ error. Now, Hypothesis can automatically resolve the forward reference
32+ by looking it up in the caller's namespace. This also resolves forward
33+ references inside ``type[...]``, such as ``type["MyClass"]``.
34+
2135.. _v6.152.10:
2236
2337---------------------
Original file line number Diff line number Diff line change 88# v. 2.0. If a copy of the MPL was not distributed with this file, You can
99# obtain one at https://mozilla.org/MPL/2.0/.
1010
11- __version_info__ = (6 , 152 , 10 )
11+ __version_info__ = (6 , 152 , 11 )
1212__version__ = "." .join (map (str , __version_info__ ))
You can’t perform that action at this time.
0 commit comments