diff --git a/docs/arguments.rst b/docs/arguments.rst index 214f564cf..ae2991b39 100644 --- a/docs/arguments.rst +++ b/docs/arguments.rst @@ -79,8 +79,8 @@ Example usage: .. click:example:: @click.command() - @click.argument('files', nargs=-1, type=click.Path(path_type=pathlib.Path)) - def touch(files: tuple[pathlib.Path, ...]): + @click.argument('files', nargs=-1, type=click.Path()) + def touch(files): """Print all FILES file names.""" for filename in files: click.echo(filename)