Skip to content

Commit

Permalink
Improve type annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
Zac-HD committed Sep 24, 2023
1 parent 78a59bf commit 7e3c654
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion hypothesis-python/src/hypothesis/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1146,7 +1146,16 @@ def fuzz_one_input(

@overload
def given(
*_given_arguments: Union[SearchStrategy[Any], EllipsisType],
_: EllipsisType, /
) -> Callable[
[Callable[..., Optional[Coroutine[Any, Any, None]]]], Callable[[], None]
]: # pragma: no cover
...


@overload
def given(
*_given_arguments: SearchStrategy[Any],
) -> Callable[
[Callable[..., Optional[Coroutine[Any, Any, None]]]], Callable[..., None]
]: # pragma: no cover
Expand Down

0 comments on commit 7e3c654

Please sign in to comment.