33import stat
44import subprocess
55import time
6- from typing import Any , Generator , Optional , cast
6+ from collections .abc import Generator
7+ from typing import Optional , cast
78from unittest import mock
89from unittest .mock import MagicMock
910
@@ -69,7 +70,9 @@ def fixture_copy_tree_paths(tmppath: Path) -> CopyTreePathConfig:
6970@pytest .fixture (name = "tmpdir_creator" )
7071def fixture_tmpdir_creator (tmppath : Path ) -> tmt .utils .filesystem .TmpDirCreator :
7172 @contextlib .contextmanager
72- def _tmpdir_creator (prefix : Optional [str ] = None , suffix : Optional [str ] = None ) -> Generator [Path , None , None ]:
73+ def _tmpdir_creator (
74+ prefix : Optional [str ] = None , suffix : Optional [str ] = None
75+ ) -> Generator [Path , None , None ]:
7376 yield tmppath
7477
7578 return _tmpdir_creator
@@ -159,7 +162,10 @@ def test_copy_tree_basic(
159162
160163@pytest .mark .parametrize ('strategy' , _STRATEGIES )
161164def test_copy_empty_source_directory (
162- strategy : tmt .utils .filesystem .CopyStrategy , tmpdir_creator : tmt .utils .filesystem .TmpDirCreator , tmppath : Path , root_logger : tmt .log .Logger
165+ strategy : tmt .utils .filesystem .CopyStrategy ,
166+ tmpdir_creator : tmt .utils .filesystem .TmpDirCreator ,
167+ tmppath : Path ,
168+ root_logger : tmt .log .Logger ,
163169) -> None :
164170 """
165171 Test copying an empty source directory.
@@ -179,7 +185,10 @@ def test_copy_empty_source_directory(
179185
180186@pytest .mark .parametrize ('strategy' , _STRATEGIES )
181187def test_deeply_nested_directories (
182- strategy : tmt .utils .filesystem .CopyStrategy , tmpdir_creator : tmt .utils .filesystem .TmpDirCreator , tmppath : Path , root_logger : tmt .log .Logger
188+ strategy : tmt .utils .filesystem .CopyStrategy ,
189+ tmpdir_creator : tmt .utils .filesystem .TmpDirCreator ,
190+ tmppath : Path ,
191+ root_logger : tmt .log .Logger ,
183192) -> None :
184193 """Test copying deeply nested directory structures."""
185194 deep_src = tmppath / "deep_src"
0 commit comments