From 1fbc919ec801b890c267872d8985b9285c5c4281 Mon Sep 17 00:00:00 2001 From: Nikita Sobolev Date: Sat, 8 Jan 2022 15:07:33 +0300 Subject: [PATCH] Use `Literal` and `__all__` in `filecmp` (#6852) --- stdlib/filecmp.pyi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/stdlib/filecmp.pyi b/stdlib/filecmp.pyi index 1c3d0a142..994809099 100644 --- a/stdlib/filecmp.pyi +++ b/stdlib/filecmp.pyi @@ -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(