Skip to content

Commit ed18c17

Browse files
committed
UPD: Fix deepsource issues
1 parent 8f7efc3 commit ed18c17

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tiatoolbox/wsicore/wsireader.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -466,8 +466,7 @@ def _handle_special_cases(
466466
post_proc: str | callable | None = "auto",
467467
**kwargs: dict,
468468
) -> WSIReader | None:
469-
"""Handle special cases for selecting the appropriate WSIReader based on file
470-
type and metadata.
469+
"""Handle special cases for selecting the appropriate WSIReader.
471470
472471
Args:
473472
input_path (Path): Path to the input image file.
@@ -477,7 +476,7 @@ def _handle_special_cases(
477476
post_proc (str | callable | None, optional): Post-processing method
478477
or identifier.
479478
**kwargs (dict): Additional keyword arguments for specific reader types.
480-
479+
481480
Returns:
482481
WSIReader | None: An appropriate WSIReader instance if a match is found,
483482
otherwise None.
@@ -486,7 +485,6 @@ def _handle_special_cases(
486485
FileNotSupportedError: If the file format is not supported for NGFF Zarr.
487486
488487
"""
489-
490488
reader = None
491489
if is_dicom(input_path):
492490
reader = DICOMWSIReader(

0 commit comments

Comments
 (0)