| 1 |
import sys |
| 2 |
from _typeshed import GenericPath, StrOrBytesPath |
| 3 |
from collections.abc import Callable, Iterable, Sequence |
| 4 |
from types import GenericAlias |
| 5 |
from typing import Any, AnyStr, Final, Generic, Literal |
| 6 |
|
| 7 |
__all__ = ["clear_cache", "cmp", "dircmp", "cmpfiles", "DEFAULT_IGNORES"] |
| 8 |
|
| 9 |
DEFAULT_IGNORES: Final[list[str]] |
| 10 |
BUFSIZE: Final = 8192 |
| 11 |
|
| 12 |
def cmp(f1: StrOrBytesPath, f2: StrOrBytesPath, shallow: bool | Literal[0, 1] = True) -> bool: ... |
| 13 |
def cmpfiles( |
| 14 |
a: GenericPath[AnyStr], b: GenericPath[AnyStr], common: Iterable[GenericPath[AnyStr]], shallow: bool | Literal[0, 1] = True |
| 15 |
) -> tuple[list[AnyStr], list[AnyStr], list[AnyStr]]: ... |
| 16 |
|
| 17 |
class dircmp(Generic[AnyStr]): |
| 18 |
if sys.version_info >= (3, 13): |
| 19 |
def __init__( |
| 20 |
self, |
| 21 |
a: GenericPath[AnyStr], |
| 22 |
b: GenericPath[AnyStr], |
| 23 |
ignore: Sequence[AnyStr] | None = None, |
| 24 |
hide: Sequence[AnyStr] | None = None, |
| 25 |
*, |
| 26 |
shallow: bool = True, |
| 27 |
) -> None: ... |
| 28 |
else: |
| 29 |
def __init__( |
| 30 |
self, |
| 31 |
a: GenericPath[AnyStr], |
| 32 |
b: GenericPath[AnyStr], |
| 33 |
ignore: Sequence[AnyStr] | None = None, |
| 34 |
hide: Sequence[AnyStr] | None = None, |
| 35 |
) -> None: ... |
| 36 |
left: AnyStr |
| 37 |
right: AnyStr |
| 38 |
hide: Sequence[AnyStr] |
| 39 |
ignore: Sequence[AnyStr] |
| 40 |
|
| 41 |
subdirs: dict[AnyStr, dircmp[AnyStr]] |
| 42 |
same_files: list[AnyStr] |
| 43 |
diff_files: list[AnyStr] |
| 44 |
funny_files: list[AnyStr] |
| 45 |
common_dirs: list[AnyStr] |
| 46 |
common_files: list[AnyStr] |
| 47 |
common_funny: list[AnyStr] |
| 48 |
common: list[AnyStr] |
| 49 |
left_only: list[AnyStr] |
| 50 |
right_only: list[AnyStr] |
| 51 |
left_list: list[AnyStr] |
| 52 |
right_list: list[AnyStr] |
| 53 |
def report(self) -> None: ... |
| 54 |
def report_partial_closure(self) -> None: ... |
| 55 |
def report_full_closure(self) -> None: ... |
| 56 |
methodmap: dict[str, Callable[[], None]] |
| 57 |
def phase0(self) -> None: ... |
| 58 |
def phase1(self) -> None: ... |
| 59 |
def phase2(self) -> None: ... |
| 60 |
def phase3(self) -> None: ... |
| 61 |
def phase4(self) -> None: ... |
| 62 |
def phase4_closure(self) -> None: ... |
| 63 |
def __class_getitem__(cls, item: Any, /) -> GenericAlias: ... |
| 64 |
|
| 65 |
def clear_cache() -> None: ... |