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 192caf5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/diracx/cli/__init__.py
@@ -1,3 +1,5 @@
# ruff: noqa: UP007 # because of https://github.com/tiangolo/typer/issues/533

from __future__ import annotations

import asyncio
Expand All @@ -22,8 +24,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 +84,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 192caf5

Please sign in to comment.