Skip to content

Commit 38aba3f

Browse files
committed
chore: fix typehint
1 parent 13dccbd commit 38aba3f

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

scripts/generate-demo-project.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,15 @@
99
import typer
1010

1111
from cookiecutter.main import cookiecutter
12+
from typer.models import OptionInfo
1213

13-
FolderOption: partial[typer.Option] = partial(typer.Option, dir_okay=True, file_okay=False, resolve_path=True, path_type=Path)
14+
FolderOption: partial[OptionInfo] = partial(
15+
typer.Option,
16+
dir_okay=True,
17+
file_okay=False,
18+
resolve_path=True,
19+
path_type=Path
20+
)
1421

1522

1623
def generate_demo_project(repo_folder: Path, demos_cache_folder: Path, demo_name: str) -> Path:
@@ -32,6 +39,7 @@ def _remove_any_existing_demo(parent_path: Path) -> None:
3239
for path in parent_path.iterdir():
3340
shutil.rmtree(path)
3441

42+
3543
cli: typer.Typer = typer.Typer()
3644

3745

0 commit comments

Comments
 (0)