Format: application/octet-stream
1 import sys
2 from typing import Any, AnyStr, Callable, Dict, Generic, Iterable, List, Optional, Sequence, Text, Tuple, Union
3
4 if sys.version_info >= (3, 6):
5 from os import PathLike
6
7 if sys.version_info >= (3, 9):
8 from types import GenericAlias
9
10 DEFAULT_IGNORES: List[str]
11
12 if sys.version_info >= (3, 6):
13 def cmp(
14 f1: Union[bytes, Text, PathLike[AnyStr]], f2: Union[bytes, Text, PathLike[AnyStr]], shallow: Union[int, bool] = ...
15 ) -> bool: ...
16 def cmpfiles(
17 a: Union[AnyStr, PathLike[AnyStr]],
18 b: Union[AnyStr, PathLike[AnyStr]],
19 common: Iterable[AnyStr],
20 shallow: Union[int, bool] = ...,
21 ) -> Tuple[List[AnyStr], List[AnyStr], List[AnyStr]]: ...
22
23 else:
24 def cmp(f1: Union[bytes, Text], f2: Union[bytes, Text], shallow: Union[int, bool] = ...) -> bool: ...
25 def cmpfiles(
26 a: AnyStr, b: AnyStr, common: Iterable[AnyStr], shallow: Union[int, bool] = ...
27 ) -> Tuple[List[AnyStr], List[AnyStr], List[AnyStr]]: ...
28
29 class dircmp(Generic[AnyStr]):
30 if sys.version_info >= (3, 6):
31 def __init__(
32 self,
33 a: Union[AnyStr, PathLike[AnyStr]],
34 b: Union[AnyStr, PathLike[AnyStr]],
35 ignore: Optional[Sequence[AnyStr]] = ...,
36 hide: Optional[Sequence[AnyStr]] = ...,
37 ) -> None: ...
38 else:
39 def __init__(
40 self, a: AnyStr, b: AnyStr, ignore: Optional[Sequence[AnyStr]] = ..., hide: Optional[Sequence[AnyStr]] = ...
41 ) -> None: ...
42 left: AnyStr
43 right: AnyStr
44 hide: Sequence[AnyStr]
45 ignore: Sequence[AnyStr]
46 # These properties are created at runtime by __getattr__
47 subdirs: Dict[AnyStr, dircmp[AnyStr]]
48 same_files: List[AnyStr]
49 diff_files: List[AnyStr]
50 funny_files: List[AnyStr]
51 common_dirs: List[AnyStr]
52 common_files: List[AnyStr]
53 common_funny: List[AnyStr]
54 common: List[AnyStr]
55 left_only: List[AnyStr]
56 right_only: List[AnyStr]
57 left_list: List[AnyStr]
58 right_list: List[AnyStr]
59 def report(self) -> None: ...
60 def report_partial_closure(self) -> None: ...
61 def report_full_closure(self) -> None: ...
62 methodmap: Dict[str, Callable[[], None]]
63 def phase0(self) -> None: ...
64 def phase1(self) -> None: ...
65 def phase2(self) -> None: ...
66 def phase3(self) -> None: ...
67 def phase4(self) -> None: ...
68 def phase4_closure(self) -> None: ...
69 if sys.version_info >= (3, 9):
70 def __class_getitem__(cls, item: Any) -> GenericAlias: ...
71
72 if sys.version_info >= (3,):
73 def clear_cache() -> None: ...
74