def test_arguments_same_name() -> None:
    'Test that a warning is emitted when a function with two\n    identically named arguments. '

    @argcomb(a='b')
    def f(a: Any=None, /, b: Any=None, **kwargs: Any) -> None:
        ...
    with pytest.warns(UserWarning):
        f(1, 2, a=3)
Test that a warning is emitted when a function with two
identically named arguments.
def test_arguments_same_name() -> None:
    'Test that a warning is emitted when a function with two\n    identically named arguments. '

    @argcomb(a='b')
    def f(a: Any=None, /, b: Any=None, **kwargs: Any) -> None:
        ...
    with pytest.warns(UserWarning):
        f(1, 2, a=3)