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

Commite66b8f1

Browse files
committed
Fix old Commit_ish annotation in RootModule
This finishes the annotation fixup begun in7328a00. (The temporaryOld_commit_ish type is now ready to be removed.)
1 parent1f03e7f commite66b8f1

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

‎git/objects/submodule/root.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
# This module is part of GitPython and is released under the
22
# 3-Clause BSD License: https://opensource.org/license/bsd-3-clause/
33

4+
importlogging
5+
6+
importgit
7+
fromgit.excimportInvalidGitRepositoryError
48
from .baseimportSubmodule,UpdateProgress
59
from .utilimportfind_first_remote_branch
6-
fromgit.excimportInvalidGitRepositoryError
7-
importgit
8-
9-
importlogging
1010

1111
# typing -------------------------------------------------------------------
1212

1313
fromtypingimportTYPE_CHECKING,Union
1414

15-
fromgit.typesimportOld_commit_ish
15+
fromgit.typesimportCommit_ish
1616

1717
ifTYPE_CHECKING:
1818
fromgit.repoimportRepo
@@ -77,7 +77,7 @@ def _clear_cache(self) -> None:
7777

7878
defupdate(# type: ignore[override]
7979
self,
80-
previous_commit:Union[Old_commit_ish,None]=None,
80+
previous_commit:Union[Commit_ish,str,None]=None,
8181
recursive:bool=True,
8282
force_remove:bool=False,
8383
init:bool=True,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp