Skip to content

Commit e1b9d94

Browse files
committed
Bump hypothesis version to 6.152.11 and update changelog
[skip ci]
1 parent 59d2de4 commit e1b9d94

3 files changed

Lines changed: 15 additions & 10 deletions

File tree

hypothesis/RELEASE.rst

Lines changed: 0 additions & 9 deletions
This file was deleted.

hypothesis/docs/changelog.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff 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
---------------------

hypothesis/src/hypothesis/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@
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__))

0 commit comments

Comments
 (0)