Skip to content

Commit d171365

Browse files
committed
Move stage type def
1 parent a6ce118 commit d171365

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

git/index/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
from .typ import (
5353
BaseIndexEntry,
5454
IndexEntry,
55+
StageType,
5556
)
5657
from .util import TemporaryFileSwap, post_clear_cache, default_index, git_working_dir
5758

@@ -83,7 +84,6 @@
8384
from git.util import Actor
8485

8586

86-
StageType = int
8787
Treeish = Union[Tree, Commit, str, bytes]
8888

8989
# ------------------------------------------------------------------------------------

git/index/typ.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
from .util import pack, unpack
66
from git.objects import Blob
7-
from git.index.base import StageType
87

98

109
# typing ----------------------------------------------------------------------
@@ -16,9 +15,11 @@
1615
if TYPE_CHECKING:
1716
from git.repo import Repo
1817

18+
StageType = int
19+
1920
# ---------------------------------------------------------------------------------
2021

21-
__all__ = ("BlobFilter", "BaseIndexEntry", "IndexEntry")
22+
__all__ = ("BlobFilter", "BaseIndexEntry", "IndexEntry", "StageType")
2223

2324
# { Invariants
2425
CE_NAMEMASK = 0x0FFF

0 commit comments

Comments
 (0)