Skip to content

Commit d4be0ae

Browse files
committed
fix: resolve lint errors in pop_demo and workflow_cli
- pop_demo.py: fix `dict[str, any]` -> `dict[str, Any]` (lowercase any is the builtin function, not a type) - workflow_cli.py: suppress basedpyright reportFunctionMemberAccess on click group command decorators
1 parent de50b56 commit d4be0ae

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

examples/pop_demo.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@
244244
]),
245245
}
246246

247-
def list_of_points(arg: str) -> list[dict[str, any]]:
247+
def list_of_points(arg: str) -> list[dict[str, Any]]:
248248
points = []
249249
points_as_tuples = ast.literal_eval(f'[{arg}]')
250250
for tuple in points_as_tuples:
@@ -255,7 +255,7 @@ def list_of_points(arg: str) -> list[dict[str, any]]:
255255
return points
256256

257257

258-
def list_of_boxes(arg: str) -> list[dict[str, any]]:
258+
def list_of_boxes(arg: str) -> list[dict[str, Any]]:
259259
boxes = []
260260
boxes_as_tuples = ast.literal_eval(f'[{arg}]')
261261
for tuple in boxes_as_tuples:

examples/workflow_cli.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
def workflow():
1212
pass
1313

14-
@workflow.command()
14+
@workflow.command() # type: ignore[reportFunctionMemberAccess]
1515
@click.option('--template-name', required=True, help='Workflow template name')
1616
@click.option('--body', required=False, help='Request body as a JSON string')
1717
def start_workflow(template_name, body):
@@ -28,7 +28,7 @@ def start_workflow(template_name, body):
2828
)
2929
click.echo(result)
3030

31-
@workflow.command()
31+
@workflow.command() # type: ignore[reportFunctionMemberAccess]
3232
@click.option('--dataset-uuid', multiple=True, help='Filter by dataset UUID')
3333
@click.option('--model-uuid', multiple=True, help='Filter by model UUID')
3434
@click.option('--phase', multiple=True, type=click.Choice([p.value for p in ArgoWorkflowPhase]), help='Workflow phase')
@@ -47,7 +47,7 @@ def list_workflows(dataset_uuid, model_uuid, phase):
4747
for wf in result:
4848
click.echo(wf)
4949

50-
@workflow.command()
50+
@workflow.command() # type: ignore[reportFunctionMemberAccess]
5151
@click.argument('workflow_id')
5252
def get_workflow(workflow_id):
5353
"""Get workflow details by ID."""

0 commit comments

Comments
 (0)