massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stdlib / filecmp.pyi
1 import sys
2 from _typeshed import StrOrBytesPath
3 from os import PathLike
4 from typing import Any, AnyStr, Callable, Generic, Iterable, Sequence
5
6 if sys.version_info >= (3, 9):
7     from types import GenericAlias
8
9 DEFAULT_IGNORES: list[str]
10
11 def cmp(f1: StrOrBytesPath, f2: StrOrBytesPath, shallow: int | bool = ...) -> bool: ...
12 def cmpfiles(
13     a: AnyStr | PathLike[AnyStr], b: AnyStr | PathLike[AnyStr], common: Iterable[AnyStr], shallow: int | bool = ...
14 ) -> tuple[list[AnyStr], list[AnyStr], list[AnyStr]]: ...
15
16 class dircmp(Generic[AnyStr]):
17     def __init__(
18         self,
19         a: AnyStr | PathLike[AnyStr],
20         b: AnyStr | PathLike[AnyStr],
21         ignore: Sequence[AnyStr] | None = ...,
22         hide: Sequence[AnyStr] | None = ...,
23     ) -> None: ...
24     left: AnyStr
25     right: AnyStr
26     hide: Sequence[AnyStr]
27     ignore: Sequence[AnyStr]
28     # These properties are created at runtime by __getattr__
29     subdirs: dict[AnyStr, dircmp[AnyStr]]
30     same_files: list[AnyStr]
31     diff_files: list[AnyStr]
32     funny_files: list[AnyStr]
33     common_dirs: list[AnyStr]
34     common_files: list[AnyStr]
35     common_funny: list[AnyStr]
36     common: list[AnyStr]
37     left_only: list[AnyStr]
38     right_only: list[AnyStr]
39     left_list: list[AnyStr]
40     right_list: list[AnyStr]
41     def report(self) -> None: ...
42     def report_partial_closure(self) -> None: ...
43     def report_full_closure(self) -> None: ...
44     methodmap: dict[str, Callable[[], None]]
45     def phase0(self) -> None: ...
46     def phase1(self) -> None: ...
47     def phase2(self) -> None: ...
48     def phase3(self) -> None: ...
49     def phase4(self) -> None: ...
50     def phase4_closure(self) -> None: ...
51     if sys.version_info >= (3, 9):
52         def __class_getitem__(cls, item: Any) -> GenericAlias: ...
53
54 def clear_cache() -> None: ...