Skip to content

Commit c27f81e

Browse files
committed
Why the checker is so dumb, None for the typed object should be fine, and is handled.
Signed-off-by: mmelqin <[email protected]>
1 parent eca4bef commit c27f81e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

monai/deploy/operators/dicom_text_sr_writer_operator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ def save_dcm_file(data_set, file_path: Path, validate_readable: bool = True):
260260
# TODO: The following fucntion can considered to be moved into Domain module as it's common.
261261
@staticmethod
262262
def write_common_modules(
263-
dicom_series: DICOMSeries,
263+
dicom_series: Union[DICOMSeries, None],
264264
copy_tags: bool,
265265
modality_type: str,
266266
sop_class_uid: str,

0 commit comments

Comments
 (0)