Skip to content

Commit 0aba3e7

Browse files
committed
Stop Lit_commit_ish being imported
1 parent a9756bc commit 0aba3e7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

git/types.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
Sequence as Sequence,
1414
Tuple,
1515
TYPE_CHECKING,
16-
TypeAlias,
1716
TypeVar,
1817
Union,
1918
)
@@ -117,7 +116,7 @@
117116
object types.
118117
"""
119118

120-
GitObjectTypeString: TypeAlias = Literal["commit", "tag", "blob", "tree"]
119+
GitObjectTypeString = Literal["commit", "tag", "blob", "tree"]
121120
"""Literal strings identifying git object types and the
122121
:class:`~git.objects.base.Object`-based types that represent them.
123122
@@ -130,7 +129,8 @@
130129
https://git-scm.com/docs/gitglossary#def_object_type
131130
"""
132131

133-
Lit_commit_ish: TypeAlias = Literal["commit", "tag"]
132+
if TYPE_CHECKING:
133+
Lit_commit_ish = Literal["commit", "tag"]
134134
"""Deprecated. Type of literal strings identifying typically-commitish git object types.
135135
136136
Prior to a bugfix, this type had been defined more broadly. Any usage is in practice

0 commit comments

Comments
 (0)