Skip to content

Commit 7776a4e

Browse files
committed
fix(TaskProcessing): types for TaskProcessingProvider
1 parent 0965823 commit 7776a4e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nc_py_api/ex_app/providers/task_processing.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,9 @@ class TaskProcessingProvider:
8282
"""The TaskType provided by this provider."""
8383
expected_runtime: int = dataclasses.field(default=0)
8484
"""Expected runtime of the task in seconds."""
85-
optional_input_shape: list[ShapeDescriptor] = dataclasses.field(default_factory=list)
85+
optional_input_shape: dict[str, ShapeDescriptor] = dataclasses.field(default_factory=dict)
8686
"""Optional input shape of the task."""
87-
optional_output_shape: list[ShapeDescriptor] = dataclasses.field(default_factory=list)
87+
optional_output_shape: dict[str, ShapeDescriptor] = dataclasses.field(default_factory=dict)
8888
"""Optional output shape of the task."""
8989
input_shape_enum_values: dict[str, list[ShapeEnumValue]] = dataclasses.field(default_factory=dict)
9090
"""The option dict for each input shape ENUM slot."""

0 commit comments

Comments
 (0)