Skip to content

Commit

Permalink
fix: fix for tiangolo/typer#533
Browse files Browse the repository at this point in the history
  • Loading branch information
fstagni committed Sep 6, 2023
1 parent 480d5b5 commit 5b55f6e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/diracx/cli/__init__.py
Expand Up @@ -22,8 +22,8 @@
@app.async_command()
async def login(
vo: str,
group: str | None = None,
property: list[str] | None = Option(
group: Optional[str] = None,
property: Optional[list[str]] = Option(
None, help="Override the default(s) with one or more properties"
),
):
Expand Down Expand Up @@ -82,7 +82,7 @@ async def logout():


@app.callback()
def callback(output_format: str | None = None):
def callback(output_format: Optional[str] = None):
if "DIRACX_OUTPUT_FORMAT" not in os.environ:
output_format = output_format or "RICH"
if output_format is not None:
Expand Down

0 comments on commit 5b55f6e

Please sign in to comment.