From b26cc93e1c812620df737229c2bedd13a9f4a3d1 Mon Sep 17 00:00:00 2001 From: Liam DeVoe Date: Sun, 8 Dec 2024 15:05:37 -0500 Subject: [PATCH] add patch notes --- hypothesis-python/RELEASE.rst | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 hypothesis-python/RELEASE.rst diff --git a/hypothesis-python/RELEASE.rst b/hypothesis-python/RELEASE.rst new file mode 100644 index 0000000000..d5f141b11a --- /dev/null +++ b/hypothesis-python/RELEASE.rst @@ -0,0 +1,7 @@ +RELEASE_TYPE: patch + +This patch improves our error and warning messages. + +- Add a warning for ``st.text("ascii")`` - you probably meant ``st.text(st.characters(codec="ascii"))``. Similarly for ``"utf-8"``. +- Recommend remedies in the error message of ``Unsatisfiable``. +- When ``@given`` errors because it was given an extra keyword argument, and the keyword matches a setting name like ``max_examples``, recommend ``@settings(max_examples=...)`` instead.