File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 35
35
from _pytest .monkeypatch import MonkeyPatch
36
36
from _pytest .pathlib import Path
37
37
from _pytest .reports import TestReport
38
+ from _pytest .tmpdir import TempdirFactory
38
39
39
40
if TYPE_CHECKING :
40
41
from typing import Type
@@ -534,13 +535,13 @@ class Testdir:
534
535
class TimeoutExpired (Exception ):
535
536
pass
536
537
537
- def __init__ (self , request , tmpdir_factory ) :
538
+ def __init__ (self , request : FixtureRequest , tmpdir_factory : TempdirFactory ) -> None :
538
539
self .request = request
539
- self ._mod_collections = WeakKeyDictionary ()
540
+ self ._mod_collections = WeakKeyDictionary () # type: ignore[var-annotated] # noqa: F821
540
541
name = request .function .__name__
541
542
self .tmpdir = tmpdir_factory .mktemp (name , numbered = True )
542
543
self .test_tmproot = tmpdir_factory .mktemp ("tmp-" + name , numbered = True )
543
- self .plugins = []
544
+ self .plugins = [] # type: ignore[var-annotated] # noqa: F821
544
545
self ._cwd_snapshot = CwdSnapshot ()
545
546
self ._sys_path_snapshot = SysPathsSnapshot ()
546
547
self ._sys_modules_snapshot = self .__take_sys_modules_snapshot ()
You can’t perform that action at this time.
0 commit comments