summaryrefslogtreecommitdiff
path: root/git/index/base.py
diff options
context:
space:
mode:
Diffstat (limited to 'git/index/base.py')
-rw-r--r--git/index/base.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/git/index/base.py b/git/index/base.py
index d939e1af..54f73617 100644
--- a/git/index/base.py
+++ b/git/index/base.py
@@ -79,6 +79,8 @@ if TYPE_CHECKING:
StageType = int
Treeish = Union[Tree, Commit, str, bytes]
+# ------------------------------------------------------------------------------------
+
__all__ = ('IndexFile', 'CheckoutError')
@@ -287,8 +289,9 @@ class IndexFile(LazyMixin, diff.Diffable, Serializable):
inst = cls(repo)
# convert to entries dict
- entries = dict(zip(((e.path, e.stage) for e in base_entries),
- (IndexEntry.from_base(e) for e in base_entries)))
+ entries = dict(zip(
+ ((e.path, e.stage) for e in base_entries),
+ (IndexEntry.from_base(e) for e in base_entries))) # type: Dict[Tuple[PathLike, int], IndexEntry]
inst.entries = entries
return inst