Skip to content

Commit 9174981

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 9b15eb3 commit 9174981

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/re3data/_cli.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import logging
88
import sys
99
from pathlib import Path
10-
from typing import Annotated, Any, Optional
10+
from typing import Annotated, Any
1111

1212
from rich.console import Console
1313

@@ -91,15 +91,15 @@ def callback(
9191
@repositories_app.command("list")
9292
def list_repositories(
9393
query: Annotated[
94-
Optional[str], # noqa: UP007 - typer does not support "str | None"
94+
str | None,
9595
typer.Option(
9696
help="A query to filter the results. If provided, only repositories matching the query will be returned."
9797
),
9898
] = None,
9999
return_type: ReturnType = ReturnType.DATACLASS,
100100
count: bool = False,
101101
outfile: Annotated[
102-
Optional[Path], # noqa: UP007 - typer does not support "Path | None"
102+
Path | None,
103103
typer.Option(
104104
file_okay=True,
105105
dir_okay=False,
@@ -118,7 +118,7 @@ def get_repository(
118118
repository_id: str,
119119
return_type: ReturnType = ReturnType.DATACLASS,
120120
outfile: Annotated[
121-
Optional[Path], # noqa: UP007 - typer does not support "Path | None"
121+
Path | None,
122122
typer.Option(
123123
file_okay=True,
124124
dir_okay=False,

0 commit comments

Comments
 (0)