Skip to content

Commit efb6588

Browse files
Document resolve_writer return value
Signed-off-by: NiketGirdhar22 <[email protected]>
1 parent 94f317a commit efb6588

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎monai/data/image_writer.py‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,10 @@ def resolve_writer(ext_name, error_if_not_found=True) -> Sequence:
103103
error_if_not_found: whether to raise an error if no suitable image writer is found.
104104
if True , raise an ``OptionalImportError``, otherwise return an empty tuple. Default is ``True``.
105105
106+
Returns:
107+
A tuple of available ``ImageWriter`` classes, or an empty tuple when ``error_if_not_found`` is ``False`` and
108+
no writer is available.
109+
106110
Raises:
107111
OptionalImportError: When no registered writer is available. If candidate writers require missing optional
108112
dependencies, the error includes commands for installing them.

0 commit comments

Comments
 (0)