Use Literal and __all__ in filecmp (#6852)

This commit is contained in:
Nikita Sobolev
2022-01-08 15:07:33 +03:00
committed by GitHub
parent c4a68faf6c
commit 1fbc919ec8

View File

@@ -2,11 +2,15 @@ import sys
from _typeshed import StrOrBytesPath
from os import PathLike
from typing import Any, AnyStr, Callable, Generic, Iterable, Sequence
from typing_extensions import Literal
if sys.version_info >= (3, 9):
from types import GenericAlias
__all__ = ["clear_cache", "cmp", "dircmp", "cmpfiles", "DEFAULT_IGNORES"]
DEFAULT_IGNORES: list[str]
BUFSIZE: Literal[8192]
def cmp(f1: StrOrBytesPath, f2: StrOrBytesPath, shallow: int | bool = ...) -> bool: ...
def cmpfiles(