typing_edit.py
This file
Path
tests/typing/typing_edit.py
10 lines · 305 bytes · Python
Last changed by
Add support of `pathlib.Path` to `edit` (#3781)Rowlando13before adoptione1fd594
History of this fileTake it
Add support of `pathlib.Path` to `edit` (#3781)Rowlando13before adoptione1fd594
lines 1–10why, one step back1from pathlib import Path23from typing_extensions import assert_type45import click67# ``filename`` accepts a path or an iterable of paths.8assert_type(click.edit(filename="f.txt"), None)9assert_type(click.edit(filename=Path("f.txt")), None)10assert_type(click.edit(filename=["f.txt", Path("g.txt")]), None)