Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0aba3e7

Browse files
committed
Stop Lit_commit_ish being imported
1 parenta9756bc commit0aba3e7

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
SequenceasSequence,
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+
ifTYPE_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)

[8]ページ先頭

©2009-2025 Movatter.jp