From 78d12aa7c922551dddd7168498e29eae32c9d109 Mon Sep 17 00:00:00 2001 From: Yobmod Date: Sun, 16 May 2021 18:04:30 +0100 Subject: Add remaining types to IndexFile ._preprocess_add_items() to .diff() --- git/exc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'git/exc.py') diff --git a/git/exc.py b/git/exc.py index 1e0caf4e..54a1d51b 100644 --- a/git/exc.py +++ b/git/exc.py @@ -11,7 +11,7 @@ from git.compat import safe_decode # typing ---------------------------------------------------- -from typing import List, Optional, Tuple, Union, TYPE_CHECKING +from typing import List, Optional, Sequence, Tuple, Union, TYPE_CHECKING from git.types import PathLike if TYPE_CHECKING: @@ -113,7 +113,7 @@ class CheckoutError(GitError): were checked out successfully and hence match the version stored in the index""" - def __init__(self, message: str, failed_files: List[PathLike], valid_files: List[PathLike], + def __init__(self, message: str, failed_files: Sequence[PathLike], valid_files: List[PathLike], failed_reasons: List[str]) -> None: Exception.__init__(self, message) -- cgit v1.2.1