15
15
if TYPE_CHECKING :
16
16
from . import Config # noqa: F401
17
17
18
+ from py .iniconfig import _SectionWrapper # noqa: F401
19
+
18
20
19
21
def exists (path , ignore = EnvironmentError ):
20
22
try :
@@ -24,11 +26,11 @@ def exists(path, ignore=EnvironmentError):
24
26
25
27
26
28
def getcfg (
27
- args : Iterable [py .path .local ], config : Optional [Config ] = None
29
+ args : Iterable [py .path .local ], config : Optional [" Config" ] = None
28
30
) -> Tuple [
29
31
Optional [py .path .local ],
30
32
Optional [py .path .local ],
31
- Union [py . iniconfig . SectionWrapper , Dict , None ],
33
+ Union ["_SectionWrapper" , Dict , None ],
32
34
]:
33
35
"""
34
36
Search the list of arguments for a valid ini-file for pytest,
@@ -123,7 +125,7 @@ def determine_setup(
123
125
args : List [str ],
124
126
rootdir_cmd_arg : Optional [str ] = None ,
125
127
config : Optional ["Config" ] = None ,
126
- ) -> Tuple [py .path .local , py .path .local , Union [py . iniconfig . SectionWrapper , Dict ]]:
128
+ ) -> Tuple [py .path .local , py .path .local , Union ["_SectionWrapper" , Dict ]]:
127
129
dirs = get_dirs_from_args (args )
128
130
if inifile :
129
131
iniconfig = py .iniconfig .IniConfig (inifile )
0 commit comments