1 # Stubs for filecmp (Python 2/3)
\r
3 from typing import AnyStr, Callable, Dict, Generic, Iterable, List, Optional, Sequence, Tuple, Union, Text
\r
5 DEFAULT_IGNORES = ... # type: List[str]
\r
7 def cmp(f1: Union[bytes, Text], f2: Union[bytes, Text], shallow: Union[int, bool] = ...) -> bool: ...
\r
8 def cmpfiles(a: AnyStr, b: AnyStr, common: Iterable[AnyStr],
\r
9 shallow: Union[int, bool] = ...) -> Tuple[List[AnyStr], List[AnyStr], List[AnyStr]]: ...
\r
11 class dircmp(Generic[AnyStr]):
\r
12 def __init__(self, a: AnyStr, b: AnyStr,
\r
13 ignore: Optional[Sequence[AnyStr]] = ...,
\r
14 hide: Optional[Sequence[AnyStr]] = ...) -> None: ...
\r
16 left = ... # type: AnyStr
\r
17 right = ... # type: AnyStr
\r
18 hide = ... # type: Sequence[AnyStr]
\r
19 ignore = ... # type: Sequence[AnyStr]
\r
21 # These properties are created at runtime by __getattr__
\r
22 subdirs = ... # type: Dict[AnyStr, dircmp[AnyStr]]
\r
23 same_files = ... # type: List[AnyStr]
\r
24 diff_files = ... # type: List[AnyStr]
\r
25 funny_files = ... # type: List[AnyStr]
\r
26 common_dirs = ... # type: List[AnyStr]
\r
27 common_files = ... # type: List[AnyStr]
\r
28 common_funny = ... # type: List[AnyStr]
\r
29 common = ... # type: List[AnyStr]
\r
30 left_only = ... # type: List[AnyStr]
\r
31 right_only = ... # type: List[AnyStr]
\r
32 left_list = ... # type: List[AnyStr]
\r
33 right_list = ... # type: List[AnyStr]
\r
35 def report(self) -> None: ...
\r
36 def report_partial_closure(self) -> None: ...
\r
37 def report_full_closure(self) -> None: ...
\r
39 methodmap = ... # type: Dict[str, Callable[[], None]]
\r
40 def phase0(self) -> None: ...
\r
41 def phase1(self) -> None: ...
\r
42 def phase2(self) -> None: ...
\r
43 def phase3(self) -> None: ...
\r
44 def phase4(self) -> None: ...
\r
45 def phase4_closure(self) -> None: ...
\r
47 if sys.version_info >= (3,):
\r
48 def clear_cache() -> None: ...
\r