summaryrefslogtreecommitdiff
path: root/git/exc.py
diff options
context:
space:
mode:
authorYobmod <yobmod@gmail.com>2021-05-16 18:04:30 +0100
committerYobmod <yobmod@gmail.com>2021-05-16 18:04:30 +0100
commit78d12aa7c922551dddd7168498e29eae32c9d109 (patch)
treeee45d8792ee808a4316cfac5133397a7becf8334 /git/exc.py
parentc3f91bd1c0e8aef1b416ae6b1f55e7bd93a4f281 (diff)
downloadgitpython-78d12aa7c922551dddd7168498e29eae32c9d109.tar.gz
Add remaining types to IndexFile ._preprocess_add_items() to .diff()
Diffstat (limited to 'git/exc.py')
-rw-r--r--git/exc.py4
1 files changed, 2 insertions, 2 deletions
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)