File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1313 Sequence as Sequence ,
1414 Tuple ,
1515 TYPE_CHECKING ,
16- TypeAlias ,
1716 TypeVar ,
1817 Union ,
1918)
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
130129https://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
136136Prior to a bugfix, this type had been defined more broadly. Any usage is in practice
You can’t perform that action at this time.
0 commit comments