Skip to content

Commit 7e8e1d3

Browse files
stubs/pyfakefs/fake_filesystem_unittest.pyi: Add typing for @patchfs
Add a stub for the @patchfs decorator of this module. Signed-off-by: Bernhard Kaindl <bernhard.kaindl@cloud.com>
1 parent ac2a4cf commit 7e8e1d3

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed
+19-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,20 @@
1-
from _typeshed import Incomplete
1+
from types import ModuleType
2+
from typing import Any, Callable, Dict, List, Optional, Union
3+
4+
from _typeshed import Incomplete # pylint: disable=import-error
5+
26
Patcher = Incomplete
7+
PatchMode = Incomplete
8+
9+
def patchfs(
10+
_func: Optional[Incomplete] = ...,
11+
*,
12+
additional_skip_names: Optional[List[Union[str, ModuleType]]] = ...,
13+
modules_to_reload: Optional[List[ModuleType]] = ...,
14+
modules_to_patch: Optional[Dict[str, ModuleType]] = ...,
15+
allow_root_user: bool = ...,
16+
use_known_patches: bool = ...,
17+
patch_open_code: PatchMode = ...,
18+
patch_default_args: bool = ...,
19+
use_cache: bool = ...,
20+
) -> Callable[[Any], Any]: ...

0 commit comments

Comments
 (0)