File tree Expand file tree Collapse file tree 1 file changed +17
-3
lines changed
Expand file tree Collapse file tree 1 file changed +17
-3
lines changed Original file line number Diff line number Diff line change 11"""Test TIFFWSIReader."""
22
3- from pathlib import Path
4- from typing import Callable
3+ from __future__ import annotations
4+
5+ from typing import TYPE_CHECKING , Callable
56
67import cv2
78import numpy as np
89import pytest
910from defusedxml import ElementTree
1011
12+ if TYPE_CHECKING :
13+ from pathlib import Path
14+
1115from tiatoolbox .wsicore import wsireader
1216
1317
@@ -112,7 +116,17 @@ def test_tiffreader_fallback_to_virtual(
112116 """
113117
114118 class DummyTIFFWSIReader :
115- def __init__ (self ) -> None :
119+ def __init__ (
120+ self ,
121+ input_path : Path ,
122+ mpp : tuple [float , float ] | None = None ,
123+ power : float | None = None ,
124+ post_proc : str | None = None ,
125+ ) -> None :
126+ _ = input_path
127+ _ = mpp
128+ _ = power
129+ _ = post_proc
116130 error_msg = "Unsupported TIFF WSI format"
117131 raise ValueError (error_msg )
118132
You can’t perform that action at this time.
0 commit comments