Debian Codegraph @

hypothesis-python/tests/ghostwriter/recorded/optional_union_parameter.txt

raw
1 # This test code was written by the `hypothesis.extra.ghostwriter` module
2 # and is provided under the Creative Commons Zero public domain dedication.
3
4 import test_expected_output
5 import typing
6 from hypothesis import given, strategies as st
7
8
9 @given(a=st.floats(), b=st.one_of(st.none(), st.floats(), st.integers()))
10 def test_fuzz_optional_union_parameter(
11 a: float, b: typing.Union[float, int, None]
12 ) -> None:
13 test_expected_output.optional_union_parameter(a=a, b=b)