From d3b5b6b6fd0ac6c8aeb5cdf4a2fbf9458f9f3c79 Mon Sep 17 00:00:00 2001 From: Rene Luria Date: Tue, 19 Aug 2025 08:57:37 +0200 Subject: [PATCH] fix: resolve typer/click compatibility issue with make_metavar error Fixed TypeError: Parameter.make_metavar() missing 1 required positional argument: 'ctx' by correcting typer.Option(...) usage for optional parameters with default None values. Bump version to v0.4.2 --- myice/myice.py | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/myice/myice.py b/myice/myice.py index 3365c32..cf9e57d 100755 --- a/myice/myice.py +++ b/myice/myice.py @@ -448,7 +448,7 @@ def get_practice_pdf( @app.command("search") def parse_schedule( - age_group: Annotated[AgeGroup | None, typer.Option(...)] = None, + age_group: Annotated[AgeGroup | None, typer.Option()] = None, event_type_filter: Annotated[ EventType | None, typer.Option("--type", help="Only display events of this type"), diff --git a/pyproject.toml b/pyproject.toml index a4b44f5..e48945f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "myice" -version = "v0.4.1" +version = "v0.4.2" description = "myice parsing" authors = [ { name = "Rene Luria", "email" = ""},