summaryrefslogtreecommitdiff
path: root/git/index/typ.py
diff options
context:
space:
mode:
Diffstat (limited to 'git/index/typ.py')
-rw-r--r--git/index/typ.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/git/index/typ.py b/git/index/typ.py
index 2a7dd799..4d307777 100644
--- a/git/index/typ.py
+++ b/git/index/typ.py
@@ -8,6 +8,8 @@ from .util import (
)
from git.objects import Blob
+from git.types import PathLike
+
__all__ = ('BlobFilter', 'BaseIndexEntry', 'IndexEntry')
@@ -79,7 +81,7 @@ class BaseIndexEntry(tuple):
return b2a_hex(self[1]).decode('ascii')
@property
- def stage(self):
+ def stage(self) -> int:
"""Stage of the entry, either:
* 0 = default stage
@@ -92,7 +94,7 @@ class BaseIndexEntry(tuple):
return (self[2] & CE_STAGEMASK) >> CE_STAGESHIFT
@property
- def path(self):
+ def path(self) -> PathLike:
""":return: our path relative to the repository working tree root"""
return self[3]