Skip to content

Commit

Permalink
Mention infer alias
Browse files Browse the repository at this point in the history
  • Loading branch information
Zac-HD committed Apr 1, 2022
1 parent bd55761 commit 055f9e2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions hypothesis-python/docs/details.rst
Original file line number Diff line number Diff line change
Expand Up @@ -572,10 +572,13 @@ argument, to force this inference for arguments with a default value.
>>> builds(func).example()
[-6993, '']
.. data:: hypothesis.infer

:func:`@given <hypothesis.given>` does not perform any implicit inference
for required arguments, as this would break compatibility with pytest fixtures.
``...`` (:obj:`python:Ellipsis`), can be used as a keyword argument to explicitly fill
in an argument from its type annotation.
``...`` (:obj:`python:Ellipsis`), can be used as a keyword argument to explicitly fill
in an argument from its type annotation. You can also use the ``hypothesis.infer``
alias if writing a literal ``...`` seems too weird.

.. code:: python
Expand Down

0 comments on commit 055f9e2

Please sign in to comment.