Skip to content
Prev Previous commit
Next Next commit
Stop Lit_commit_ish being imported
  • Loading branch information
George-Ogden committed Nov 28, 2025
commit 0aba3e7bdec7544a86b6e6ba4b0ad8e2ac5cd2c7
6 changes: 3 additions & 3 deletions git/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
Sequence as Sequence,
Tuple,
TYPE_CHECKING,
TypeAlias,
TypeVar,
Union,
)
Expand Down Expand Up @@ -117,7 +116,7 @@
object types.
"""

GitObjectTypeString: TypeAlias = Literal["commit", "tag", "blob", "tree"]
GitObjectTypeString = Literal["commit", "tag", "blob", "tree"]
"""Literal strings identifying git object types and the
:class:`~git.objects.base.Object`-based types that represent them.

Expand All @@ -130,7 +129,8 @@
https://git-scm.com/docs/gitglossary#def_object_type
"""

Lit_commit_ish: TypeAlias = Literal["commit", "tag"]
if TYPE_CHECKING:
Lit_commit_ish = Literal["commit", "tag"]
"""Deprecated. Type of literal strings identifying typically-commitish git object types.

Prior to a bugfix, this type had been defined more broadly. Any usage is in practice
Expand Down