File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77import logging
88import sys
99from pathlib import Path
10- from typing import Annotated , Any , Optional
10+ from typing import Annotated , Any
1111
1212from rich .console import Console
1313
@@ -91,15 +91,15 @@ def callback(
9191@repositories_app .command ("list" )
9292def 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 ,
You can’t perform that action at this time.
0 commit comments