Changelog
### 6.46.1
```
-------------------
This patch fixes a rare bug where we could incorrectly treat
:obj:`~python:inspect.Parameter.empty` as a type annotation,
if the callable had an explicitly assigned ``__signature__``.
```
### 6.46.0
```
-------------------
This release adds an ``allow_nil`` argument to :func:`~hypothesis.strategies.uuids`,
which you can use to... generate the nil UUID. Thanks to Shlok Gandhi for the patch!
```
### 6.45.4
```
-------------------
This patch fixes some missing imports for certain :doc:`Ghostwritten <ghostwriter>`
tests. Thanks to Mel Seto for fixing :issue:`3316`.
```
### 6.45.3
```
-------------------
This patch teaches :doc:`the Ghostwriter <ghostwriter>` to recognize
many more common argument names (:issue:`3311`).
```
### 6.45.2
```
-------------------
This patch fixes :issue:`3314`, where Hypothesis would raise an internal
error from :func:`~hypothesis.provisional.domains` or (only on Windows)
from :func:`~hypothesis.strategies.timezones` in some rare circumstances
where the installation was subtly broken.
Thanks to Munir Abdinur for this contribution.
```
### 6.45.1
```
-------------------
This release fixes deprecation warnings about ``sre_compile`` and ``sre_parse``
imports and ``importlib.resources`` usage when running Hypothesis on Python 3.11.
Thanks to Florian Bruhin for this contribution.
```
### 6.45.0
```
-------------------
This release updates :func:`xps.indices` by introducing an ``allow_newaxis``
argument, defaulting to ``False``. If ``allow_newaxis=True``, indices can be
generated that add dimensions to arrays, which is achieved by the indexer
containing ``None``. This change is to support a specification change that
expand dimensions via indexing (`data-apis/array-api408
<https://github.com/data-apis/array-api/pull/408>`_).
```
### 6.44.0
```
-------------------
This release adds a ``names`` argument to :func:`~hypothesis.extra.pandas.indexes`
and :func:`~hypothesis.extra.pandas.series`, so that you can create Pandas
objects with specific or varied names.
Contributed by Sam Watts.
```
### 6.43.3
```
-------------------
This patch updates the type annotations for :func:`given <hypothesis.given>`
so that type-checkers will warn on mixed positional and keyword arguments,
as well as fixing :issue:`3296`.
```
### 6.43.2
```
-------------------
Fixed a type annotation for ``pyright --strict`` (:issue:`3287`).
```
### 6.43.1
```
-------------------
This patch makes it an explicit error to call
:func:`~hypothesis.strategies.register_type_strategy` with a
`Pydantic GenericModel <https://pydantic-docs.helpmanual.io/usage/models/#generic-models>`__
and a callable, because ``GenericModel`` isn't actually a generic type at
runtime and so you have to register each of the "parametrized versions"
(actually subclasses!) manually. See :issue:`2940` for more details.
```
### 6.43.0
```
-------------------
This release makes it an explicit error to apply
:func:`pytest.fixture <pytest:pytest.fixture>` to a function which has
already been decorated with :func:`given() <hypothesis.given>`. Previously,
``pytest`` would convert your test to a fixture, and then never run it.
```
### 6.42.3
```
-------------------
This patch fixes :func:`~hypothesis.strategies.from_type` on a :class:`~python:typing.TypedDict`
with complex annotations, defined in a file using ``from __future__ import annotations``.
Thanks to Katelyn Gigante for identifying and fixing this bug!
```
### 6.42.2
```
-------------------
The Hypothesis pytest plugin was not outputting valid xunit2 nodes when
``--junit-xml`` was specified. This has been broken since Pytest 5.4, which
changed the internal API for adding nodes to the junit report.
This also fixes the issue when using hypothesis with ``--junit-xml`` and
``pytest-xdist`` where the junit xml report would not be xunit2 compatible.
Now, when using with ``pytest-xdist``, the junit report will just omit the
``<properties>`` node.
For more details, see `this pytest issue <https://github.com/pytest-dev/pytest/issues/1126#issuecomment-484581283>`__,
`this pytest issue <https://github.com/pytest-dev/pytest/issues/7767#issuecomment-1082436256>`__,
and :issue:`1935`
Thanks to Brandon Chinn for this bug fix!
```
### 6.42.1
```
-------------------
This patch fixes pretty-printing of regular expressions in Python 3.11.0a7, and
updates our vendored `list of top-level domains <https://www.iana.org/domains/root/db>`__,.
```
### 6.42.0
```
-------------------
This release makes ``st.functions(pure=True)`` less noisy (:issue:`3253`),
and generally improves pretty-printing of functions.
```
### 6.41.0
```
-------------------
This release changes the implementation of :const:`~hypothesis.infer` to be an alias
for :obj:`python:Ellipsis`. E.g. ``given(a=infer)`` is now equivalent to ``given(a=...)``. Furthermore, ``given(...)`` can now be specified so that
:func:`given <hypothesis.given>` will infer the strategies for *all* arguments of the
decorated function based on its annotations.
```
### 6.40.3
```
-------------------
This patch simplifies the repr of the strategies namespace returned in
:func:`~hypothesis.extra.array_api.make_strategies_namespace`, e.g.
.. code-block:: pycon
>>> from hypothesis.extra.array_api import make_strategies_namespace
>>> from numpy import array_api as xp
>>> xps = make_strategies_namespace(xp)
>>> xps
make_strategies_namespace(numpy.array_api)
```
Links
- PyPI: https://pypi.org/project/hypothesis
- Changelog: https://pyup.io/changelogs/hypothesis/
- Homepage: https://hypothesis.works
Changelog
### 7.1.2
```
=========================
Bug Fixes
---------
- `9726 <https://github.com/pytest-dev/pytest/issues/9726>`_: An unnecessary ``numpy`` import inside :func:`pytest.approx` was removed.
- `9820 <https://github.com/pytest-dev/pytest/issues/9820>`_: Fix comparison of ``dataclasses`` with ``InitVar``.
- `9869 <https://github.com/pytest-dev/pytest/issues/9869>`_: Increase ``stacklevel`` for the ``NODE_CTOR_FSPATH_ARG`` deprecation to point to the
user's code, not pytest.
- `9871 <https://github.com/pytest-dev/pytest/issues/9871>`_: Fix a bizarre (and fortunately rare) bug where the `temp_path` fixture could raise
an internal error while attempting to get the current user's username.
```
Links
- PyPI: https://pypi.org/project/pytest
- Changelog: https://pyup.io/changelogs/pytest/
- Homepage: https://docs.pytest.org/en/latest/
Update pandas from 1.4.1 to 1.4.2.
The bot wasn't able to find a changelog for this release. Got an idea?
Links
- PyPI: https://pypi.org/project/pandas - Homepage: https://pandas.pydata.orgUpdate sqlalchemy from 1.4.34 to 1.4.36.
The bot wasn't able to find a changelog for this release. Got an idea?
Links
- PyPI: https://pypi.org/project/sqlalchemy - Changelog: https://pyup.io/changelogs/sqlalchemy/ - Homepage: https://www.sqlalchemy.orgUpdate tqdm from 4.63.1 to 4.64.0.
Changelog
### 4.63.2 ``` - `rich`: expose `options` kwargs (1282) - `autonotebook`: re-enable VSCode (1309) - misc docs typos (1301, 1299) - update dev dependencies (1311) ```Links
- PyPI: https://pypi.org/project/tqdm - Changelog: https://pyup.io/changelogs/tqdm/ - Repo: https://tqdm.github.ioUpdate hypothesis from 6.40.2 to 6.46.1.
Changelog
### 6.46.1 ``` ------------------- This patch fixes a rare bug where we could incorrectly treat :obj:`~python:inspect.Parameter.empty` as a type annotation, if the callable had an explicitly assigned ``__signature__``. ``` ### 6.46.0 ``` ------------------- This release adds an ``allow_nil`` argument to :func:`~hypothesis.strategies.uuids`, which you can use to... generate the nil UUID. Thanks to Shlok Gandhi for the patch! ``` ### 6.45.4 ``` ------------------- This patch fixes some missing imports for certain :doc:`Ghostwritten <ghostwriter>` tests. Thanks to Mel Seto for fixing :issue:`3316`. ``` ### 6.45.3 ``` ------------------- This patch teaches :doc:`the Ghostwriter <ghostwriter>` to recognize many more common argument names (:issue:`3311`). ``` ### 6.45.2 ``` ------------------- This patch fixes :issue:`3314`, where Hypothesis would raise an internal error from :func:`~hypothesis.provisional.domains` or (only on Windows) from :func:`~hypothesis.strategies.timezones` in some rare circumstances where the installation was subtly broken. Thanks to Munir Abdinur for this contribution. ``` ### 6.45.1 ``` ------------------- This release fixes deprecation warnings about ``sre_compile`` and ``sre_parse`` imports and ``importlib.resources`` usage when running Hypothesis on Python 3.11. Thanks to Florian Bruhin for this contribution. ``` ### 6.45.0 ``` ------------------- This release updates :func:`xps.indices` by introducing an ``allow_newaxis`` argument, defaulting to ``False``. If ``allow_newaxis=True``, indices can be generated that add dimensions to arrays, which is achieved by the indexer containing ``None``. This change is to support a specification change that expand dimensions via indexing (`data-apis/array-api408 <https://github.com/data-apis/array-api/pull/408>`_). ``` ### 6.44.0 ``` ------------------- This release adds a ``names`` argument to :func:`~hypothesis.extra.pandas.indexes` and :func:`~hypothesis.extra.pandas.series`, so that you can create Pandas objects with specific or varied names. Contributed by Sam Watts. ``` ### 6.43.3 ``` ------------------- This patch updates the type annotations for :func:`given <hypothesis.given>` so that type-checkers will warn on mixed positional and keyword arguments, as well as fixing :issue:`3296`. ``` ### 6.43.2 ``` ------------------- Fixed a type annotation for ``pyright --strict`` (:issue:`3287`). ``` ### 6.43.1 ``` ------------------- This patch makes it an explicit error to call :func:`~hypothesis.strategies.register_type_strategy` with a `Pydantic GenericModel <https://pydantic-docs.helpmanual.io/usage/models/#generic-models>`__ and a callable, because ``GenericModel`` isn't actually a generic type at runtime and so you have to register each of the "parametrized versions" (actually subclasses!) manually. See :issue:`2940` for more details. ``` ### 6.43.0 ``` ------------------- This release makes it an explicit error to apply :func:`pytest.fixture <pytest:pytest.fixture>` to a function which has already been decorated with :func:`given() <hypothesis.given>`. Previously, ``pytest`` would convert your test to a fixture, and then never run it. ``` ### 6.42.3 ``` ------------------- This patch fixes :func:`~hypothesis.strategies.from_type` on a :class:`~python:typing.TypedDict` with complex annotations, defined in a file using ``from __future__ import annotations``. Thanks to Katelyn Gigante for identifying and fixing this bug! ``` ### 6.42.2 ``` ------------------- The Hypothesis pytest plugin was not outputting valid xunit2 nodes when ``--junit-xml`` was specified. This has been broken since Pytest 5.4, which changed the internal API for adding nodes to the junit report. This also fixes the issue when using hypothesis with ``--junit-xml`` and ``pytest-xdist`` where the junit xml report would not be xunit2 compatible. Now, when using with ``pytest-xdist``, the junit report will just omit the ``<properties>`` node. For more details, see `this pytest issue <https://github.com/pytest-dev/pytest/issues/1126#issuecomment-484581283>`__, `this pytest issue <https://github.com/pytest-dev/pytest/issues/7767#issuecomment-1082436256>`__, and :issue:`1935` Thanks to Brandon Chinn for this bug fix! ``` ### 6.42.1 ``` ------------------- This patch fixes pretty-printing of regular expressions in Python 3.11.0a7, and updates our vendored `list of top-level domains <https://www.iana.org/domains/root/db>`__,. ``` ### 6.42.0 ``` ------------------- This release makes ``st.functions(pure=True)`` less noisy (:issue:`3253`), and generally improves pretty-printing of functions. ``` ### 6.41.0 ``` ------------------- This release changes the implementation of :const:`~hypothesis.infer` to be an alias for :obj:`python:Ellipsis`. E.g. ``given(a=infer)`` is now equivalent to ``given(a=...)``. Furthermore, ``given(...)`` can now be specified so that :func:`given <hypothesis.given>` will infer the strategies for *all* arguments of the decorated function based on its annotations. ``` ### 6.40.3 ``` ------------------- This patch simplifies the repr of the strategies namespace returned in :func:`~hypothesis.extra.array_api.make_strategies_namespace`, e.g. .. code-block:: pycon >>> from hypothesis.extra.array_api import make_strategies_namespace >>> from numpy import array_api as xp >>> xps = make_strategies_namespace(xp) >>> xps make_strategies_namespace(numpy.array_api) ```Links
- PyPI: https://pypi.org/project/hypothesis - Changelog: https://pyup.io/changelogs/hypothesis/ - Homepage: https://hypothesis.worksUpdate pytest from 7.1.1 to 7.1.2.
Changelog
### 7.1.2 ``` ========================= Bug Fixes --------- - `9726 <https://github.com/pytest-dev/pytest/issues/9726>`_: An unnecessary ``numpy`` import inside :func:`pytest.approx` was removed. - `9820 <https://github.com/pytest-dev/pytest/issues/9820>`_: Fix comparison of ``dataclasses`` with ``InitVar``. - `9869 <https://github.com/pytest-dev/pytest/issues/9869>`_: Increase ``stacklevel`` for the ``NODE_CTOR_FSPATH_ARG`` deprecation to point to the user's code, not pytest. - `9871 <https://github.com/pytest-dev/pytest/issues/9871>`_: Fix a bizarre (and fortunately rare) bug where the `temp_path` fixture could raise an internal error while attempting to get the current user's username. ```Links
- PyPI: https://pypi.org/project/pytest - Changelog: https://pyup.io/changelogs/pytest/ - Homepage: https://docs.pytest.org/en/latest/