def METHOD_NAME(tmp_path: pathlib.Path) -> None:
    def func(x: int) -> None:
        pass  # pragma: no cover
    funcs = api.ast.extract(source.make_file(tmp_path, func))
    assert funcs == {
        'func': api.Parameters(
            parameters=[
                api.Parameter(
                    name='x',
                    positional=True,
                    keyword=True,
                    required=True,
                    line=1,
                    type_annotation=api.types.TypeName('int'),
                )
            ],
            variadic_args=False,
            variadic_kwargs=False,
            line=1,
        )
    }