Skip to content

Commit

Permalink
update release notes
Browse files Browse the repository at this point in the history
  • Loading branch information
rsokl committed Nov 18, 2022
1 parent fd1b90a commit 5ded7e9
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion hypothesis-python/RELEASE.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
RELEASE_TYPE: minor

FILL ME IN LATER
Since :ref:`v6.27.1 <_v6.27.1>` the backing data structure of
:func:`~hypothesis.register_random` is a :class:`weakref.WeakKeyDictionary`. As a
consequence, passing an unreferenced object to :func:`~hypothesis.register_random` will
have no affect on Hypothesis' tracking of RNG sources. This patch modifies
:func:`~hypothesis.register_random` to raise an error when it is passed an unreferenced
object, and to emit a warning when it looks like it was passed an object that is only
referenced within a temporary scope. These checks are not performed by PyPy's
interpreter. The type annotation of :func:`~hypothesis.register_random` was also
widened to permit structural subtypes of ``random.Random``.

0 comments on commit 5ded7e9

Please sign in to comment.